WIP: Implement voter

This commit is contained in:
Björn Fromme
2023-10-11 16:11:48 +02:00
parent 79e4fe0f33
commit 088c5546e7
2 changed files with 27 additions and 8 deletions
+17 -3
View File
@@ -62,9 +62,23 @@
</td>
<td>
<div class="flex items-center space-x-1 justify-end">
<a href="{{ path('app_teamer_assignment', { 'uuid': assignment.uuid, 'r': return_url() }) }}">
{{ icon('info', 'w-5 h-5') }}
</a>
{% if is_granted('VIEW', application) %}
<a href="{{ path('app_teamer_assignment', { 'uuid': assignment.uuid, 'r': return_url() }) }}">
{{ icon('info', 'w-5 h-5') }}
</a>
{% endif %}
{% if is_granted('DELETE', application) %}
<button type="button"
title="Bewerbung löschen"
{{ stimulus_controller('modal-button', [], [], {'confirmation-modal': '#confirmation-modal'}) }}
{{ stimulus_action('modal-button', 'confirmation', null, {
'title': 'Bist du sicher?',
'content': 'Möchtest du die Bewerbing wirklich zurückziehen/löschen?',
'target-url': path('app_teamer_application_delete', { 'uuid': application.uuid })
}) }}>
{{ icon('delete', 'w-5 h-5 text-red-500') }}
</button>
{% endif %}
</div>
</td>
</tr>