feat: view and edit comments of uploaded documents

addresses #869eg7tv1
This commit is contained in:
Björn Fromme
2026-08-13 17:20:17 +02:00
parent 44fab8bf6c
commit 644bfa225d
5 changed files with 109 additions and 2 deletions
@@ -90,6 +90,16 @@
{{ icon('delete') }}
</button>
{% endif %}
{% if is_granted('COMMENT', upload) %}
<button type="button"
class="{{ html_classes({ 'text-gray-300': not upload.comment }) }}"
title="{{ upload.comment ? 'Kommentar bearbeiten' : 'Kommentar hinzufügen' }}"
hx-get="{{ path('app_administrative_document_comment', { 'uuid': upload.uuid, 'r': return_url() }) }}"
hx-target="body"
hx-swap="beforeend">
{{ icon('feedback') }}
</button>
{% endif %}
<a href="{{ path('app_common_download', { 'uuid': upload.uuid, 'inline': false }) }}"
target="_blank"
title="Download und Markierung">