summaryrefslogtreecommitdiff
path: root/archaeological_warehouse/templates
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2020-09-03 13:21:48 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2021-02-28 12:15:21 +0100
commit5845864ea387d35f5c66f916a6c262ba5b06fb2b (patch)
tree37bf1d6c842075fbcb22f35144bbd6c876991839 /archaeological_warehouse/templates
parentc996469e842ef3541f5b1290d2541dd6d2f2844e (diff)
downloadIshtar-5845864ea387d35f5c66f916a6c262ba5b06fb2b.tar.bz2
Ishtar-5845864ea387d35f5c66f916a6c262ba5b06fb2b.zip
Container sheet: list documents
Diffstat (limited to 'archaeological_warehouse/templates')
-rw-r--r--archaeological_warehouse/templates/ishtar/sheet_container.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/archaeological_warehouse/templates/ishtar/sheet_container.html b/archaeological_warehouse/templates/ishtar/sheet_container.html
index 238ab1e0c..4ea1d36c5 100644
--- a/archaeological_warehouse/templates/ishtar/sheet_container.html
+++ b/archaeological_warehouse/templates/ishtar/sheet_container.html
@@ -139,7 +139,7 @@
<div class="tab-pane fade" id="{{window_id}}-content"
role="tabpanel" aria-labelledby="{{window_id}}-content-tab">
- {% if item.container_content.count or item.children.count %}
+ {% if item.container_content.count or item.children.count or item.contained_documents.count %}
{% if item.children.count %}
<h4>{% trans "Divisions" %}</h4>
@@ -153,6 +153,11 @@
{% dynamic_table_document '' 'finds_inside_container' 'container' item.pk 'TABLE_COLS' output 'large' %}
{% endif %}
+ {% if item.contained_documents.count %}
+ {% trans "Documents" as document_lbl %}
+ {% dynamic_table_document document_lbl 'documents' 'container_id' item.pk 'TABLE_COLS' output 'large' %}
+ {% endif %}
+
{% else %}
<div class="alert alert-info">
<i class="fa fa-exclamation-triangle"></i>