feat: mark documents global
This commit is contained in:
+3
@@ -2,6 +2,9 @@
|
||||
<div class="pb-4">
|
||||
{{ form_row(form.displayName) }}
|
||||
</div>
|
||||
<div class="pb-4">
|
||||
{{ form_row(form.global) }}
|
||||
</div>
|
||||
<button type="submit" class="btn">
|
||||
aktualisieren
|
||||
</button>
|
||||
@@ -17,6 +17,9 @@
|
||||
<th>
|
||||
Dateigröße
|
||||
</th>
|
||||
<th>
|
||||
global
|
||||
</th>
|
||||
<th>
|
||||
Upload am
|
||||
</th>
|
||||
@@ -35,6 +38,10 @@
|
||||
<td>
|
||||
{{ document.size|file_size }}
|
||||
</td>
|
||||
<td>
|
||||
{% set icon = document.global ? 'check' : 'minus' %}
|
||||
{{ icon(icon, 'w-4 h-4') }}
|
||||
</td>
|
||||
<td>
|
||||
{{ document.createdAt|date('d.m.Y') }}
|
||||
</td>
|
||||
@@ -65,7 +72,7 @@
|
||||
{{ stimulus_controller('modal-button', [], [], {'ajax-modal': '#ajax-modal'}) }}
|
||||
{{ stimulus_action('modal-button', 'ajax', null, {
|
||||
'title': 'Dokument umbenennen',
|
||||
'url': path('app_admin_system_document_rename', { 'uuid': document.uuid })
|
||||
'url': path('app_admin_system_document_edit', { 'uuid': document.uuid })
|
||||
}) }}>
|
||||
{{ icon('edit') }}
|
||||
</button>
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
'accepted_files': 'application/pdf',
|
||||
} %}
|
||||
</div>
|
||||
<div class="pb-4">
|
||||
{{ form_row(form.global) }}
|
||||
</div>
|
||||
<button type="submit" class="btn">
|
||||
Uploads speichern
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user