Feat: Add popup window to display teamer info per application

This commit is contained in:
Björn Fromme
2023-10-19 15:49:26 +02:00
parent 585f86e45f
commit 67cc7bf4ed
8 changed files with 107 additions and 20 deletions
@@ -1,24 +1,24 @@
<ul class="list-disc pl-4 pb-4">
{% if assignment.pickup and assignment.effectivePickupDate %}
<li>
<div class="flex items-center space-x-2">
<span>Busbegleitung ab {{ assignment.pickup|bpn_pickup_label }} am {{ assignment.effectivePickupDate|date('d.m.Y') }}</span>
<ul class="pb-8 divide-y divide-gray-200">
{% if assignment.pickup and assignment.effectivePickupDate %}
<li class="py-2">
<div class="flex items-center justify-between">
<span class="flex-1">Busbegleitung {{ assignment.pickup|bpn_pickup_label }} am {{ assignment.effectivePickupDate|date('d.m.Y') }}</span>
{% if teamer.hasPickup(assignment.pickup) %}
{{ icon('check', 'w-5 h-5 text-emerald-500') }}
{{ icon('check', 'w-5 h-5 text-green-500 shrink-0') }}
{% else %}
{{ icon('close', 'w-5 h-5 text-red-500') }}
{{ icon('close', 'w-5 h-5 text-red-500 shrink-0') }}
{% endif %}
</div>
</li>
{% endif %}
{% for training in assignment.jobProfile.requiredTrainings %}
<li>
<div class="flex items-center space-x-2">
<span>{{ training.name }} absolviert</span>
<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-emerald-500') }}
{{ icon('check', 'w-5 h-5 text-green-500 shrink-0') }}
{% else %}
{{ icon('close', 'w-5 h-5 text-red-500') }}
{{ icon('close', 'w-5 h-5 text-red-500 shrink-0') }}
{% endif %}
</div>
</li>