Feat: Add funtion to rename uploaded documents
This commit is contained in:
@@ -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') }}
|
||||
|
||||
Reference in New Issue
Block a user