Feat: Show icon representing application or disposition status
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user