feat: feedback details for role 'administrative'

This commit is contained in:
Björn Fromme
2024-03-13 10:29:51 +01:00
parent 7e5b0e66c4
commit 712122f10a
4 changed files with 56 additions and 1 deletions
@@ -27,7 +27,7 @@
{{ knp_pagination_sortable(pagination, 'Haus', 'feedback.hotel') }}
</th>
<th>
{{ knp_pagination_sortable(pagination, 'Note', 'feedback.averageRating') }}
{{ knp_pagination_sortable(pagination, 'Bewertung', 'feedback.averageRating') }}
</th>
<th></th>
</tr>
@@ -61,6 +61,12 @@
{% endif %}
</td>
<td>
<button type="button"
hx-get="{{ path('app_administrative_feedback_detail', { 'uuid': feedback.uuid }) }}"
hx-target="body"
hx-swap="beforeend">
{{ icon('info', 'w-4 h-4') }}
</button>
</td>
</tr>
{% else %}
@@ -0,0 +1,25 @@
{% extends 'htmx_modal.html.twig' %}
{% block title %}Feedback zu {{ feedback.teamer }}{% endblock %}
{% block content %}
<div class="text-lg pb-4">
Einsatz: {{ feedback.destinationName }}
<br>
Einsatzzeitraum: {{ feedback.assignmentDateFrom|date('d.m.Y') }} - {{ feedback.assignmentDateTo|date('d.m.Y') }}
<br>
Feedback von: {{ feedback.author }}
</div>
<table>
{% for entry in feedback.ratings %}
<tr>
<td class="border-r border-gray-300">
{{ entry.rating }}
</td>
<td class="text-center">
{{ entry.mark }}
</td>
</tr>
{% endfor %}
</table>
{% endblock %}