77 lines
3.6 KiB
Twig
77 lines
3.6 KiB
Twig
{% extends 'administrative/layout.html.twig' %}
|
|
|
|
{% macro dispositionData(disposition) %}
|
|
{% set assignment = disposition.assignment %}
|
|
<span class="whitespace-nowrap">{{ disposition.teamer.fullName(true) }}</span>
|
|
<button type="button"
|
|
class="flex items-center space-x-1"
|
|
title="Teamer:inneninfo {{ disposition.teamer }}"
|
|
hx-get="{{ path('app_administrative_teamer_info', { 'uuid': disposition.teamer.uuid, 'r': return_url() }) }}"
|
|
hx-target="body"
|
|
hx-swap="beforeend">
|
|
{{ icon('info', 'w-4 h-4') }}
|
|
</button>
|
|
{% include '_partials/_dot.html.twig' %}
|
|
<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>
|
|
{% include '_partials/_dot.html.twig' %}
|
|
<span class="whitespace-nowrap">{{ assignment.jobProfile.name }}</span>
|
|
{% endmacro %}
|
|
|
|
{% block content %}
|
|
<div class="grid gap-8">
|
|
<div class="card p-4">
|
|
<h2 class="section-title pb-3">
|
|
Neue Einteilungen
|
|
</h2>
|
|
<ul class="divide-y divide-line">
|
|
{% for disposition in newDispositions %}
|
|
{% set assignment = disposition.assignment %}
|
|
<li class="py-2 first:pt-0 last:pb-0 overflow-x-hidden">
|
|
<div class="flex items-center space-x-1">
|
|
{{ icon('hand', 'w-4 h-4 shrink-0') }}
|
|
{{ _self.dispositionData(disposition) }}
|
|
</div>
|
|
</li>
|
|
{% else %}
|
|
<li class="py-2 first:pt-0 last:pb-0">
|
|
-
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
<div class="card p-4">
|
|
<h2 class="section-title pb-3">
|
|
Ausstehende Feedbacks
|
|
</h2>
|
|
<ul class="divide-y divide-line">
|
|
{% for row in pendingTravels %}
|
|
{% set destination = row[0] %}
|
|
{% set questionnaireOpen = destination.dateTo >= goLive and row.questionnaireStatus != 'submitted' %}
|
|
<li class="py-2 first:pt-0 last:pb-0 overflow-x-hidden">
|
|
<a href="{{ questionnaireOpen ? path('app_house_manager_questionnaire_edit', { 'id': destination.id }) : path('app_house_manager_feedback_index') }}"
|
|
class="flex flex-wrap items-center gap-x-1">
|
|
{{ icon('feedback', 'w-4 h-4 shrink-0') }}
|
|
<span class="whitespace-nowrap">{{ destination.dateFrom|date('d.m.y') }} - {{ destination.dateTo|date('d.m.y') }}</span>
|
|
{% include '_partials/_dot.html.twig' %}
|
|
<span>{{ destination.product }}</span>
|
|
{% if questionnaireOpen %}
|
|
{% include '_partials/_dot.html.twig' %}
|
|
<span class="whitespace-nowrap">Fragebogen {{ row.questionnaireStatus == 'draft' ? 'im Entwurf' : 'offen' }}</span>
|
|
{% endif %}
|
|
{% if row.openFeedbacks > 0 %}
|
|
{% include '_partials/_dot.html.twig' %}
|
|
<span class="whitespace-nowrap">{{ row.openFeedbacks }} {{ row.openFeedbacks == 1 ? 'Bewertung' : 'Bewertungen' }} offen</span>
|
|
{% endif %}
|
|
</a>
|
|
</li>
|
|
{% else %}
|
|
<li class="py-2 first:pt-0 last:pb-0">
|
|
-
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |