feat: view and edit comments of uploaded documents
addresses #869eg7tv1
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user