feat: feedback approval by admins

This commit is contained in:
Björn Fromme
2023-12-12 18:04:23 +01:00
parent b5781df8d9
commit f03df979db
5 changed files with 111 additions and 3 deletions
@@ -0,0 +1,10 @@
{{ form_start(form) }}
<div class="flex flex-col space-y-4 pb-4">
{{ form_row(form.comment) }}
{{ form_row(form.commentInternal) }}
</div>
<button type="submit" class="btn">
Speichern und freigeben
</button>
{{ form_rest(form) }}
{{ form_end(form) }}
+8 -2
View File
@@ -120,14 +120,20 @@
<ul class="divide-y divide-gray-200">
{% for feedback in feedbacks %}
<li class="py-2 first:pt-0 last:pb-0">
<a href="#" class="flex items-center space-x-1 truncate">
<button type="button"
class="flex items-center space-x-1 truncate"
{{ stimulus_controller('modal-button', [], [], {'ajax-modal': '#ajax-modal'}) }}
{{ stimulus_action('modal-button', 'ajax', null, {
'title': 'Feedback freigeben',
'url': path('app_admin_feedback_approve', { 'uuid': feedback.uuid })
}) }}>
{{ icon('feedback', 'w-4 h-4 shrink-0') }}
<span class="whitespace-nowrap">{{ feedback.teamer }}</span>
{% include '_partials/_dot.html.twig' %}
<span class="whitespace-nowrap">{{ feedback.destinationName }}</span>
{% include '_partials/_dot.html.twig' %}
<span class="whitespace-nowrap">{{ feedback.jobProfileName }}</span>
</a>
</button>
</li>
{% else %}
<li class="py-2 first:pt-0 last:pb-0">
@@ -39,7 +39,7 @@
</td>
<td>
{% if disposition.feedback %}
{{ (disposition.feedback.averageRating/100)|format_number({fraction_digit: 2}) }}
{{ disposition.feedback.averageRating|format_rating }}
{% else %}
-
{% endif %}