feat: show the teamer record sections as tabs and the profile as cards

This commit is contained in:
fromme committed 2026-11-12 11:13:30 +01:00
1 parent ec3fd68695
commit 5ca9b812c3
8 files changed
+425 -569

No files matched your search

@@ -3,77 +3,73 @@
{% block title %}Vergangene Einsätze & Feedback {{ teamer }}{% endblock %}
{% block content %}
<div class="grid lg:grid-cols-3 gap-y-8 lg:gap-y-0 lg:gap-x-8">
<div>
{{ knp_menu_render(knp_menu_get('default_teamer')) }}
</div>
<div class="lg:col-span-2">
<h1 class="text-2xl font-bold pb-8">
Vergangene Einsätze &amp; Feedback {{ teamer }}
</h1>
<div class="data-table-wrapper">
<div class="data-table-wrapper__inner">
<table class="data-table">
<thead>
{{ knp_menu_render(knp_menu_get('default_teamer'), { 'template': '_partials/_tabs.html.twig' }) }}
<div>
<h1 class="text-2xl font-bold pb-8">
Vergangene Einsätze &amp; Feedback {{ teamer }}
</h1>
<div class="data-table-wrapper">
<div class="data-table-wrapper__inner">
<table class="data-table">
<thead>
<tr>
<th>
Einsatz
</th>
<th>
Jobprofil
</th>
<th>
Gesamtnote
</th>
<th>
Kommentar öffentlich/intern
</th>
</tr>
</thead>
<tbody>
{% for disposition in pagination %}
<tr>
<th>
Einsatz
</th>
<th>
Jobprofil
</th>
<th>
Gesamtnote
</th>
<th>
Kommentar öffentlich/intern
</th>
</tr>
</thead>
<tbody>
{% for disposition in pagination %}
<tr>
<td>
{{ disposition.assignment.destination.dateFrom|date('d.m.Y') }}
<br>
{{ disposition.assignment.destination.product }}
<br>
{{ disposition.assignment.destination.hotel }}
</td>
<td>
{{ disposition.assignment.jobProfile.name }}
</td>
<td>
{% if disposition.feedback %}
{{ disposition.feedback.averageRating|format_rating }}
{% else %}
-
{% endif %}
</td>
<td>
{% if disposition.feedback %}
<div class="divide-y">
<div class="pb-2">
{{ disposition.feedback.comment|default('-') }}
</div>
<div class="pt-2">
{{ disposition.feedback.commentInternal|default('-') }}
</div>
</div>
{% else %}
-
{% endif %}
</td>
</tr>
{% else %}
<td colspan="4">
Keine Daten...
<td>
{{ disposition.assignment.destination.dateFrom|date('d.m.Y') }}
<br>
{{ disposition.assignment.destination.product }}
<br>
{{ disposition.assignment.destination.hotel }}
</td>
{% endfor %}
</tbody>
</table>
{{ knp_pagination_render(pagination) }}
</div>
<td>
{{ disposition.assignment.jobProfile.name }}
</td>
<td>
{% if disposition.feedback %}
{{ disposition.feedback.averageRating|format_rating }}
{% else %}
-
{% endif %}
</td>
<td>
{% if disposition.feedback %}
<div class="divide-y">
<div class="pb-2">
{{ disposition.feedback.comment|default('-') }}
</div>
<div class="pt-2">
{{ disposition.feedback.commentInternal|default('-') }}
</div>
</div>
{% else %}
-
{% endif %}
</td>
</tr>
{% else %}
<td colspan="4">
Keine Daten...
</td>
{% endfor %}
</tbody>
</table>
{{ knp_pagination_render(pagination) }}
</div>
</div>
</div>