Task: Improve layout
This commit is contained in:
@@ -47,10 +47,18 @@
|
||||
</div>
|
||||
<div>
|
||||
{% 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() }) %}
|
||||
{% set label = 'in Bearbeitung' %}
|
||||
{% set application = assignment.applications[0] %}
|
||||
{% if application.status == constant('App\\Entity\\Application::STATUS_REJECTED') %}
|
||||
{% set icon = 'close' %}
|
||||
{% set class = 'bg-gray-100 text-gray-800 hover:bg-gray-50' %}
|
||||
{% set url = path('app_teamer_assignment', { 'uuid': assignment.uuid, 'r': return_url() }) %}
|
||||
{% set label = 'Bewerbung abgelehnt' %}
|
||||
{% else %}
|
||||
{% 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() }) %}
|
||||
{% set label = 'in Bearbeitung' %}
|
||||
{% endif %}
|
||||
{% elseif assignment.dispositions|length %}
|
||||
{% set icon = 'check' %}
|
||||
{% set class = 'bg-green-100 text-green-700 hover:bg-green-50' %}
|
||||
|
||||
Reference in New Issue
Block a user