refactor: name the per-teamer disposition lists correctly
This commit is contained in:
1 parent
5090f72fab
commit
de4aedd26e
6 files changed
+10
-10
No files matched your search
@@ -0,0 +1,80 @@
|
||||
{% extends 'administrative/layout.html.twig' %}
|
||||
|
||||
{% 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 & 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>
|
||||
<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>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{{ knp_pagination_render(pagination) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user