diff options
Diffstat (limited to 'archaeological_warehouse/templates/ishtar/sheet_container.html')
-rw-r--r-- | archaeological_warehouse/templates/ishtar/sheet_container.html | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/archaeological_warehouse/templates/ishtar/sheet_container.html b/archaeological_warehouse/templates/ishtar/sheet_container.html index a3acd20e7..55b1d9fa6 100644 --- a/archaeological_warehouse/templates/ishtar/sheet_container.html +++ b/archaeological_warehouse/templates/ishtar/sheet_container.html @@ -295,12 +295,9 @@ {% if display_documents %} <div class="tab-pane fade" id="{{window_id}}-documents" role="tabpanel" aria-labelledby="{{window_id}}-documents-tab"> - {% trans "Document for this container" as ct_docs %} - {% if permission_view_own_document or permission_view_document %} - {% if item.documents.count %} - {% dynamic_table_document ct_docs 'documents' 'containers' item.pk '' output %} - {% endif %} - {% endif %} + {% with permission_change_item=item|can_edit_item:request %} + {% include "ishtar/blocks/sheet_document_list.html" %} + {% endwith %} </div> {% endif %} {% if not is_external and PROFILE.locate_warehouses %} |