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
+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">