fix: called-off dispositions no longer block teamers

This commit is contained in:
Björn Fromme
2026-08-26 09:11:27 +02:00
committed by fromme
parent cc280907e5
commit f3eae5462d
8 changed files with 186 additions and 20 deletions
+1 -1
View File
@@ -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() }) }}"
+3 -2
View File
@@ -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' %}