WIP: Implement feedback functionality
This commit is contained in:
@@ -27,20 +27,22 @@
|
||||
{{ feedbackSet.name }}
|
||||
</td>
|
||||
<td>
|
||||
{{ feedbackSet.items|length }}
|
||||
{{ feedbackSet.ratings|length }}
|
||||
</td>
|
||||
<td>
|
||||
<div class="flex items-center space-x-2 justify-end">
|
||||
<button type="button"
|
||||
class="text-red-500"
|
||||
{{ stimulus_controller('modal-button', [], [], {'confirmation-modal': '#confirmation-modal'}) }}
|
||||
{{ stimulus_action('modal-button', 'confirmation', null, {
|
||||
'title': 'Bist du sicher?',
|
||||
'content': 'Möchtest du das Job-Profil wirklich löschen?',
|
||||
'target-url': path('app_admin_system_feedback_set_delete', { 'id': feedbackSet.id })
|
||||
}) }}>
|
||||
{{ icon('delete') }}
|
||||
</button>
|
||||
{% if is_granted('DELETE', feedbackSet) %}
|
||||
<button type="button"
|
||||
class="text-red-500"
|
||||
{{ stimulus_controller('modal-button', [], [], {'confirmation-modal': '#confirmation-modal'}) }}
|
||||
{{ stimulus_action('modal-button', 'confirmation', null, {
|
||||
'title': 'Bist du sicher?',
|
||||
'content': 'Möchtest du das Job-Profil wirklich löschen?',
|
||||
'target-url': path('app_admin_system_feedback_set_delete', { 'id': feedbackSet.id })
|
||||
}) }}>
|
||||
{{ icon('delete') }}
|
||||
</button>
|
||||
{% endif %}
|
||||
<a href="{{ path('app_admin_system_feedback_set_edit', { 'id': feedbackSet.id }) }}">
|
||||
{{ icon('edit') }}
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user