Files
myep-team/templates/admin/system/feedback_set/index.html.twig
T

66 lines
2.9 KiB
Twig

{% extends 'admin/layout.html.twig' %}
{% block title %}Einstellungen - Feedback-Vorlagen{% endblock %}
{% block content %}
<h1 class="text-2xl font-bold pb-8">
Feedback-Vorlagen
</h1>
<div class="data-table-wrapper">
<div class="data-table-wrapper__inner">
<table class="data-table">
<thead>
<tr>
<th>
Bezeichnung
</th>
<th>
Bewertungen
</th>
<th></th>
</tr>
</thead>
<tbody>
{% for feedbackSet in feedbackSets %}
<tr>
<td>
{{ feedbackSet.name }}
</td>
<td>
{{ feedbackSet.ratings|length }}
</td>
<td>
<div class="flex items-center space-x-2 justify-end">
{% 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>
</div>
</td>
</tr>
{% else %}
<tr>
<td colspan="4">
Keine Daten...
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
<a href="{{ path('app_admin_system_feedback_set_create') }}" class="btn">
Neu
</a>
{% endblock %}