add sorted jobs
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
<div class="mb-2">
|
||||
{{ member.description|softhyphen|safe }}
|
||||
</div>
|
||||
{% if jobs %}
|
||||
{% if active_jobs or inactive_jobs %}
|
||||
<h3 class="group mt-4 mb-2 text-lg text-gray-900">Ehrenamtliche Tätigkeiten:
|
||||
<button class="inline float-right text-sm px-2 py-1 text-gray-600 md:text-gray-500 group-hover:text-gray-600 border rounded border-gray-500 md:border-gray-400 group-hover:border-gray-500"
|
||||
@click="expandList = ! expandList"
|
||||
@@ -27,7 +27,7 @@
|
||||
</h3>
|
||||
|
||||
<ul class="flex flex-col gap-1">
|
||||
{% for jobm in jobs %}
|
||||
{% for jobm in active_jobs %}
|
||||
<li class="flex flex-row flex-wrap">
|
||||
<span>{{ jobm.job.name }}:</span>
|
||||
<span class="ml-2 text-gray-600">{{ jobm.job_start|date }} -</span>
|
||||
@@ -43,10 +43,10 @@
|
||||
x-transition:leave-start="opacity-100"
|
||||
x-transition:leave-end="opacity-0"
|
||||
>
|
||||
{% for jobm in jobs %}
|
||||
{% for jobm in inactive_jobs %}
|
||||
<li class="flex flex-row flex-wrap">
|
||||
<span>{{ jobm.job.name }}:</span>
|
||||
<span class="ml-2 text-gray-600">{{ jobm.job_start|date }} -</span>
|
||||
<span class="ml-2 text-gray-600">{{ jobm.job_start|date }} - {{ jobm.job_end|date }}</span>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user