Feat: Refactor application rejecting process
This commit is contained in:
@@ -68,14 +68,17 @@
|
||||
{% if assignment.applications|length %}
|
||||
{% set icon = 'hourglass' %}
|
||||
{% set class = 'bg-yellow-100 text-yellow-800 hover:bg-yellow-50' %}
|
||||
{% set url = path('app_teamer_assignment', { 'uuid': assignment.uuid, 'r': return_url() }) %}
|
||||
{% elseif assignment.dispositions|length %}
|
||||
{% set icon = 'check' %}
|
||||
{% set class = 'bg-green-100 text-green-700 hover:bg-green-50' %}
|
||||
{% set url = path('app_teamer_disposition_detail', { 'uuid': assignment.dispositions[0].uuid }) %}
|
||||
{% else %}
|
||||
{% set icon = 'info' %}
|
||||
{% set class = 'btn--info' %}
|
||||
{% set url = path('app_teamer_assignment', { 'uuid': assignment.uuid, 'r': return_url() }) %}
|
||||
{% endif %}
|
||||
<a href="{{ path('app_teamer_assignment', { 'uuid': assignment.uuid, 'r': return_url() }) }}"
|
||||
<a href="{{ url }}"
|
||||
class="btn btn--small {{ class }}">
|
||||
{{ icon(icon, 'w-4 h-4') }}
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user