Feat: Show icon representing application or disposition status

This commit is contained in:
Björn Fromme
2023-10-18 18:56:26 +02:00
parent 6f22531297
commit 40d4edbf96
5 changed files with 33 additions and 11 deletions
+14 -5
View File
@@ -65,11 +65,20 @@
{{ assignment.effectivePickupDate ? assignment.effectivePickupDate|date('d.m.Y') : '' }}
</td>
<td>
<div class="flex items-center space-x-1 justify-end">
<a href="{{ path('app_teamer_assignment', { 'uuid': assignment.uuid, 'r': return_url() }) }}">
{{ icon('info', 'w-5 h-5') }}
</a>
</div>
{% if assignment.applications|length %}
{% set icon = 'hourglass' %}
{% set class = 'bg-yellow-100 text-yellow-800 hover:bg-yellow-50' %}
{% elseif assignment.dispositions|length %}
{% set icon = 'check' %}
{% set class = 'bg-green-100 text-green-700 hover:bg-green-50' %}
{% else %}
{% set icon = 'info' %}
{% set class = 'btn--info' %}
{% endif %}
<a href="{{ path('app_teamer_assignment', { 'uuid': assignment.uuid, 'r': return_url() }) }}"
class="btn btn--small {{ class }}">
{{ icon(icon, 'w-4 h-4') }}
</a>
</td>
</tr>
{% else %}