diff --git a/templates/admin/application/index.html.twig b/templates/admin/application/index.html.twig index 0fab2c7..6e3040d 100644 --- a/templates/admin/application/index.html.twig +++ b/templates/admin/application/index.html.twig @@ -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 %}