From ce71f7f286819ee1399fef5f1819f9cc812149a6 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 13 Mar 2025 13:30:02 +0100 Subject: ✨ sheets: refactor document listing - add edit and unlink actions (refs #6221) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/ishtar/sheet_operation.html | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'archaeological_operations') diff --git a/archaeological_operations/templates/ishtar/sheet_operation.html b/archaeological_operations/templates/ishtar/sheet_operation.html index 6d5fa18e5..4d078a998 100644 --- a/archaeological_operations/templates/ishtar/sheet_operation.html +++ b/archaeological_operations/templates/ishtar/sheet_operation.html @@ -401,13 +401,9 @@ {% if display_documents %}
- {% trans "Document from this operation" as operation_docs %} - {% if item.documents.count and not item.documents_not_available %} - {% dynamic_table_document operation_docs 'documents' 'operations' item.pk '' output %} - {% elif item.documents_list %} -

{{operation_docs}}

- {% include "ishtar/blocks/api_document_list.html" %} - {% endif %} + {% with permission_change_item=item|can_edit_item:request %} + {% include "ishtar/blocks/sheet_document_list.html" %} + {% endwith %}
{% endif %} -- cgit v1.2.3