diff options
Diffstat (limited to 'archaeological_operations')
-rw-r--r-- | archaeological_operations/templates/ishtar/sheet_operation.html | 10 |
1 files changed, 3 insertions, 7 deletions
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 %} <div class="tab-pane fade" id="{{window_id}}-documents" role="tabpanel" aria-labelledby="{{window_id}}-documents-tab"> - {% 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 %} - <h3>{{operation_docs}}</h3> - {% 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 %} </div> {% endif %} |