style: restyle the teamer assignment, placement and application pages

This commit is contained in:
fromme committed 2026-11-12 11:25:30 +01:00
1 parent 64fac372c0
commit 8b44c7f14d
5 files changed
+89 -129

No files matched your search

@@ -1,32 +1,30 @@
<ul class="pb-8">
{% macro check(met) %}
{% if met %}
{{ icon('check', 'w-5 h-5 text-emerald-700 shrink-0') }}
<span class="sr-only">erfüllt</span>
{% else %}
{{ icon('close', 'w-5 h-5 text-red-700 shrink-0') }}
<span class="sr-only">nicht erfüllt</span>
{% endif %}
{% endmacro %}
<ul class="divide-y divide-line pb-6">
{% set pickup = assignment.destination.pickup(assignment.pickup) %}
{% if pickup is not null %}
<li class="py-2">
<div class="flex items-center justify-between">
<span class="flex-1">Busbegleitung ab {{ pickup.city }}</span>
{% if has_pickup(assignment.pickup, teamer) %}
{{ icon('check', 'w-5 h-5 text-green-500 shrink-0') }}
{% else %}
{{ icon('close', 'w-5 h-5 text-red-500 shrink-0') }}
{% endif %}
</div>
<li class="flex items-center justify-between gap-x-4 py-2">
<span class="flex-1">Busbegleitung ab {{ pickup.city }}</span>
{{ _self.check(has_pickup(assignment.pickup, teamer)) }}
</li>
{% endif %}
{% for training in assignment.jobProfile.requiredTrainings %}
<li class="py-2">
<div class="flex items-center justify-between">
<span class="flex-1">{{ training.name }} absolviert</span>
{% if teamer.trainingAttendance(training) %}
{{ icon('check', 'w-5 h-5 text-green-500 shrink-0') }}
{% else %}
{{ icon('close', 'w-5 h-5 text-red-500 shrink-0') }}
{% endif %}
</div>
<li class="flex items-center justify-between gap-x-4 py-2">
<span class="flex-1">{{ training.name }} absolviert</span>
{{ _self.check(teamer.trainingAttendance(training)) }}
</li>
{% if not loop.last %}
<li>
oder
</li>
<li class="py-1 text-xs font-bold uppercase tracking-wide text-muted">
oder
</li>
{% endif %}
{% endfor %}
</ul>