From 5845864ea387d35f5c66f916a6c262ba5b06fb2b Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 3 Sep 2020 13:21:48 +0200 Subject: Container sheet: list documents --- archaeological_warehouse/templates/ishtar/sheet_container.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'archaeological_warehouse/templates') 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 @@
- {% 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 %}

{% trans "Divisions" %}

@@ -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 %}
-- cgit v1.2.3