feat: dedicated icon when all requirements are met
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user