feat: dedicated icon when all requirements are met
This commit is contained in:
@@ -82,16 +82,17 @@
|
|||||||
'title': 'Teamer:innen-Info ' ~ application.teamer,
|
'title': 'Teamer:innen-Info ' ~ application.teamer,
|
||||||
'url': path('app_admin_application_info', { 'uuid': application.uuid })
|
'url': path('app_admin_application_info', { 'uuid': application.uuid })
|
||||||
}) }}>
|
}) }}>
|
||||||
{% if assignment.pickup %}
|
{% set requirementsMet = true %}
|
||||||
{% if application.matchesPickup %}
|
{% if assignment.pickup and not application.matchesPickup %}
|
||||||
{{ icon('bus', 'w-5 h-5 text-green-500 shrink-0') }}
|
{{ icon('bus', 'w-5 h-5 text-red-500 shrink-0') }}
|
||||||
{% else %}
|
{% set requirementsMet = false %}
|
||||||
{{ icon('bus', 'w-5 h-5 text-red-500 shrink-0') }}
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% set requiredTrainingsCount = assignment.jobProfile.requiredTrainings|length %}
|
|
||||||
{% if not application.matchesRequiredTrainings %}
|
{% if not application.matchesRequiredTrainings %}
|
||||||
{{ icon('alert', 'w-5 h-5 text-red-500 shrink-0') }}
|
{{ 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 %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user