feat: dedicated icon when all requirements are met

This commit is contained in:
Björn Fromme
2024-01-29 17:32:16 +01:00
parent bfdfb0f04e
commit cb536cca97
+8 -7
View File
@@ -82,16 +82,17 @@
'title': 'Teamer:innen-Info ' ~ application.teamer,
'url': path('app_admin_application_info', { 'uuid': application.uuid })
}) }}>
{% if assignment.pickup %}
{% if application.matchesPickup %}
{{ icon('bus', 'w-5 h-5 text-green-500 shrink-0') }}
{% else %}
{{ icon('bus', 'w-5 h-5 text-red-500 shrink-0') }}
{% endif %}
{% set requirementsMet = true %}
{% if assignment.pickup and not application.matchesPickup %}
{{ icon('bus', 'w-5 h-5 text-red-500 shrink-0') }}
{% set requirementsMet = false %}
{% endif %}
{% set requiredTrainingsCount = assignment.jobProfile.requiredTrainings|length %}
{% if not application.matchesRequiredTrainings %}
{{ icon('alert', 'w-5 h-5 text-red-500 shrink-0') }}
{% set requirementsMet = false %}
{% endif %}
{% if requirementsMet %}
{{ icon('check', 'w-5 h-5 text-green-500 shrink-0') }}
{% endif %}
</div>
</td>