summaryrefslogtreecommitdiff
path: root/archaeological_finds/templates/ishtar/sheet_find.html
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_finds/templates/ishtar/sheet_find.html')
-rw-r--r--archaeological_finds/templates/ishtar/sheet_find.html10
1 files changed, 3 insertions, 7 deletions
diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html
index d38b0060f..9b439825c 100644
--- a/archaeological_finds/templates/ishtar/sheet_find.html
+++ b/archaeological_finds/templates/ishtar/sheet_find.html
@@ -280,13 +280,9 @@
{% if display_documents %}
<div class="tab-pane fade" id="{{window_id}}-documents"
role="tabpanel" aria-labelledby="{{window_id}}-documents-tab">
- {% trans "Associated documents" as finds_docs %}
- {% if item.documents.count %}
- {% dynamic_table_document finds_docs 'documents' 'finds' item.pk '' output %}
- {% elif item.documents_list %}
- <h3>{{finds_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 %}