Feat: Implement disposition document handling for admins

This commit is contained in:
Björn Fromme
2023-10-13 17:20:13 +02:00
parent 789249cba7
commit 194cd4e59d
12 changed files with 282 additions and 39 deletions
+15 -3
View File
@@ -60,9 +60,21 @@
{{ upload.status|upload_status_badge }}
</td>
<td>
{% include '_partials/_dropdown.html.twig' with { 'links': [
{ 'url': path('app_common_download', { 'uuid': upload.uuid }), 'label': 'Download', 'target': '_blank' },
] } %}
<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>
<a href="{{ path('app_common_download', { 'uuid': upload.uuid }) }}"
target="_blank"
title="Download">
{{ icon('download') }}
</a>
</div>
</td>
</tr>
{% else %}