diff options
Diffstat (limited to 'archaeological_context_records')
-rw-r--r-- | archaeological_context_records/templates/ishtar/sheet_contextrecord.html | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html index 29d7f80c6..f43df6c4e 100644 --- a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html +++ b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html @@ -346,12 +346,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 context record" as cr_docs %} - {% if permission_view_own_document or permission_view_document %} - {% if item.documents.count %} - {% dynamic_table_document cr_docs 'documents' 'context_records' item.pk '' output %} - {% endif %} - {% endif %} + {% with permission_change_item=item|can_edit_item:request %} + {% include "ishtar/blocks/sheet_document_list.html" %} + {% endwith %} </div> {% endif %} |