fix: called-off dispositions no longer block teamers
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
</div>
|
||||
<div>
|
||||
{% set application = assignment.applications.first %}
|
||||
{% set disposition = assignment.dispositions.first%}
|
||||
{% set disposition = assignment.activeDispositionByTeamer(teamer) %}
|
||||
{% if application %}
|
||||
{% if application.status == constant('App\\Entity\\Application::STATUS_REJECTED') %}
|
||||
<a href="{{ path('app_teamer_assignment_detail', { 'uuid': assignment.uuid, 'r': return_url() }) }}"
|
||||
|
||||
@@ -35,15 +35,16 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
<div>
|
||||
{% set disposition = assignment.activeDispositionByTeamer(teamer) %}
|
||||
{% 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_detail', { 'uuid': assignment.uuid, 'r': return_url() }) %}
|
||||
{% set label = 'in Bearbeitung' %}
|
||||
{% elseif assignment.dispositions|length %}
|
||||
{% elseif disposition %}
|
||||
{% 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 }) %}
|
||||
{% set url = path('app_teamer_disposition_detail', { 'uuid': disposition.uuid }) %}
|
||||
{% set label = 'eingeteilt' %}
|
||||
{% else %}
|
||||
{% set icon = 'hand' %}
|
||||
|
||||
Reference in New Issue
Block a user