feat: mark documents global

This commit is contained in:
Björn Fromme
2024-01-28 14:09:02 +01:00
parent bd3b3688c5
commit 79a4a8fef5
8 changed files with 105 additions and 15 deletions
@@ -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>