WIP: Implement feedback functionality

This commit is contained in:
Björn Fromme
2023-11-05 18:19:58 +01:00
parent 47f2aa17be
commit 908b904b67
15 changed files with 346 additions and 75 deletions
+2 -2
View File
@@ -70,12 +70,12 @@
{% endif %}
</td>
<td>
<a href="#">
<a href="{{ path('app_admin_teamer_profile', { 'uuid': teamer.uuid }) }}">
<span class="whitespace-nowrap">{{ teamer.lastName }}</span>
</a>
</td>
<td>
<a href="#" class="whitespace-nowrap">
<a href="{{ path('app_admin_teamer_profile', { 'uuid': teamer.uuid }) }}" class="whitespace-nowrap">
{{ teamer.firstName }}
</a>
</td>
@@ -11,6 +11,65 @@
<h1 class="text-2xl font-bold pb-8">
Vergangene Einsätze &amp; Feeback {{ teamer }}
</h1>
<div class="data-table-wrapper">
<div class="data-table-wrapper__inner">
<table class="data-table">
<thead>
<tr>
<th>
Einsatz
</th>
<th>
Gesamtnote
</th>
<th>
Kommentar
</th>
<th></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>
{% if disposition.feedback %}
{{ disposition.feedback.averageRating }}
{% else %}
-
{% endif %}
</td>
<td>
{% if disposition.feedback %}
<div class="truncate">
{{ disposition.feedback.comment|default('-') }}
</div>
{% else %}
-
{% endif %}
</td>
<td>
<button>
{{ icon('feedback') }}
</button>
</td>
</tr>
{% else %}
<td colspan="7">
Keine Daten...
</td>
{% endfor %}
</tbody>
</table>
{{ knp_pagination_render(pagination) }}
</div>
</div>
</div>
</div>
{% endblock %}