Files
myep-team/templates/_partials/_assignment_requirements_info.html.twig
T

31 lines
1.2 KiB
Twig

{% 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="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="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 class="py-1 text-xs font-bold uppercase tracking-wide text-muted">
oder
</li>
{% endif %}
{% endfor %}
</ul>