feat: list upcoming season assignments among a teamer's dispositions

This commit is contained in:
fromme committed 2026-10-20 17:13:45 +02:00
1 parent 300bb2058f
commit c00dd86eb4
17 files changed
+386 -97

No files matched your search

+34 -12
View File
@@ -116,20 +116,42 @@
Meine Einsätze
</h2>
<ul class="divide-y divide-gray-200">
{% for disposition in upcomingDispositions %}
{% set assignment = disposition.assignment %}
{% for row in upcomingPlacements %}
<li class="py-2 first:pt-0 last:pb-0">
<a href="{{ path('app_teamer_disposition_detail', { 'uuid': disposition.uuid }) }}">
<div class="flex items-center space-x-1">
{{ icon('check', 'w-4 h-4 shrink-0') }}
<div class="flex items-center space-x-1 truncate">
<span class="whitespace-nowrap">{{ assignment.destination.dateFrom|date('d.m.y') }} - {{ assignment.destination.dateTo|date('d.m.y') }}</span>
{% include '_partials/_dot.html.twig' %}
<span class="whitespace-nowrap">{{ assignment.destination.hotel }}</span>
{% if row.seasonAssignment is not null %}
{% set seasonAssignment = row.seasonAssignment %}
{% set content %}
<div class="flex items-center space-x-1">
{{ icon('check', 'w-4 h-4 shrink-0') }}
<div class="flex items-center space-x-1 truncate">
<span class="whitespace-nowrap">{{ row.dateFrom|date('d.m.y') }} - {{ row.dateTo|date('d.m.y') }}</span>
{% include '_partials/_dot.html.twig' %}
<span class="whitespace-nowrap">{{ seasonAssignment.hotelCode|house_label }}</span>
{% include '_partials/_season_badge.html.twig' %}
</div>
</div>
</div>
<div class="pl-5 whitespace-nowrap">{{ assignment.jobProfile.name }}</div>
</a>
<div class="pl-5 whitespace-nowrap">{{ seasonAssignment.jobProfile.name }}</div>
{% endset %}
{% if seasonAssignment is same as(linkedSeasonAssignment) %}
<a href="{{ path('app_teamer_season_index') }}">{{ content }}</a>
{% else %}
{{ content }}
{% endif %}
{% else %}
{% set disposition = row.disposition %}
{% set assignment = disposition.assignment %}
<a href="{{ path('app_teamer_disposition_detail', { 'uuid': disposition.uuid }) }}">
<div class="flex items-center space-x-1">
{{ icon('check', 'w-4 h-4 shrink-0') }}
<div class="flex items-center space-x-1 truncate">
<span class="whitespace-nowrap">{{ assignment.destination.dateFrom|date('d.m.y') }} - {{ assignment.destination.dateTo|date('d.m.y') }}</span>
{% include '_partials/_dot.html.twig' %}
<span class="whitespace-nowrap">{{ assignment.destination.hotel }}</span>
</div>
</div>
<div class="pl-5 whitespace-nowrap">{{ assignment.jobProfile.name }}</div>
</a>
{% endif %}
</li>
{% else %}
<li class="py-2 first:pt-0 last:pb-0">