From e538b5e3629c40e2a04dc354209fbae86ee07cf0 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 9 Sep 2020 12:52:27 +0200 Subject: Sheet warehouse: display find inside/owned by the warehouse --- .../templates/ishtar/sheet_warehouse.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'archaeological_warehouse/templates') diff --git a/archaeological_warehouse/templates/ishtar/sheet_warehouse.html b/archaeological_warehouse/templates/ishtar/sheet_warehouse.html index 1307425ff..dcaa12215 100644 --- a/archaeological_warehouse/templates/ishtar/sheet_warehouse.html +++ b/archaeological_warehouse/templates/ishtar/sheet_warehouse.html @@ -96,6 +96,24 @@ {% trans "No container inside this warehouse" %} {% endif %} + {% if item.number_of_finds_hosted %} +

{% trans "Finds (hosted)" %}

+ {% dynamic_table_document '' 'finds' 'container__location' item.pk 'TABLE_COLS' output %} + {% else %} +
+ + {% trans "No find inside this warehouse" %} +
+ {% endif %} + {% if item.number_of_finds %} +

{% trans "Finds (owned)" %}

+ {% dynamic_table_document '' 'finds' 'container_ref__location' item.pk 'TABLE_COLS' output %} + {% else %} +
+ + {% trans "No find owned by this warehouse" %} +
+ {% endif %}