Feat: Extend and apply voter for checking of uploaded documents

This commit is contained in:
Björn Fromme
2023-10-14 17:14:30 +02:00
parent 3576d72a0a
commit f5fee787a0
4 changed files with 63 additions and 21 deletions
+11 -9
View File
@@ -60,15 +60,17 @@
{{ upload.status|upload_status_badge }}
</td>
<td>
<div class="flex items-center space-x-2">
<button type="button"
{{ stimulus_controller('modal-button', [], [], {'ajax-modal': '#ajax-modal'}) }}
{{ stimulus_action('modal-button', 'ajax', null, {
'title': 'Dokumentenstatus bearbeiten',
'url': path('app_admin_document_check', { 'uuid': upload.uuid })
}) }}>
{{ icon('edit') }}
</button>
<div class="flex items-center space-x-2 justify-end">
{% if is_granted('CHECK', upload) %}
<button type="button"
{{ stimulus_controller('modal-button', [], [], {'ajax-modal': '#ajax-modal'}) }}
{{ stimulus_action('modal-button', 'ajax', null, {
'title': 'Dokumentenstatus bearbeiten',
'url': path('app_admin_document_check', { 'uuid': upload.uuid })
}) }}>
{{ icon('edit') }}
</button>
{% endif %}
<a href="{{ path('app_common_download', { 'uuid': upload.uuid }) }}"
target="_blank"
title="Download">