Feat: Add funtion to rename uploaded documents

This commit is contained in:
Björn Fromme
2023-10-12 14:43:00 +02:00
parent 3e32fcbcb4
commit eefb60007f
3 changed files with 72 additions and 1 deletions
+9 -1
View File
@@ -30,7 +30,7 @@
{% for document in pagination %}
<tr>
<td>
{{ document.originalFilename }}
{{ document.displayName ? document.displayName : document.originalFilename }}
</td>
<td>
{{ document.size|file_size }}
@@ -61,6 +61,14 @@
}) }}>
{{ icon('refresh') }}
</button>
<button type="button"
{{ stimulus_controller('modal-button', [], [], {'ajax-modal': '#ajax-modal'}) }}
{{ stimulus_action('modal-button', 'ajax', null, {
'title': 'Dokument umbenennen',
'url': path('app_admin_document_rename', { 'uuid': document.uuid })
}) }}>
{{ icon('edit') }}
</button>
<a href="{{ path('app_common_download', { 'uuid': document.uuid }) }}"
title="Download">
{{ icon('download') }}