summaryrefslogtreecommitdiff
path: root/archaeological_warehouse/templates
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2020-09-09 12:52:27 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2021-02-28 12:15:20 +0100
commite538b5e3629c40e2a04dc354209fbae86ee07cf0 (patch)
treeb244376b7a769df8a9c5c48ce0ecfad204bcbfc3 /archaeological_warehouse/templates
parentd2b8f1997ec52e8f32d6fa680d7107ee9421bd31 (diff)
downloadIshtar-e538b5e3629c40e2a04dc354209fbae86ee07cf0.tar.bz2
Ishtar-e538b5e3629c40e2a04dc354209fbae86ee07cf0.zip
Sheet warehouse: display find inside/owned by the warehouse
Diffstat (limited to 'archaeological_warehouse/templates')
-rw-r--r--archaeological_warehouse/templates/ishtar/sheet_warehouse.html18
1 files changed, 18 insertions, 0 deletions
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" %}
</div>
{% endif %}
+ {% if item.number_of_finds_hosted %}
+ <h4>{% trans "Finds (hosted)" %}</h4>
+ {% dynamic_table_document '' 'finds' 'container__location' item.pk 'TABLE_COLS' output %}
+ {% else %}
+ <div class="alert alert-info">
+ <i class="fa fa-exclamation-triangle"></i>
+ {% trans "No find inside this warehouse" %}
+ </div>
+ {% endif %}
+ {% if item.number_of_finds %}
+ <h4>{% trans "Finds (owned)" %}</h4>
+ {% dynamic_table_document '' 'finds' 'container_ref__location' item.pk 'TABLE_COLS' output %}
+ {% else %}
+ <div class="alert alert-info">
+ <i class="fa fa-exclamation-triangle"></i>
+ {% trans "No find owned by this warehouse" %}
+ </div>
+ {% endif %}
</div>
<div class="tab-pane fade" id="{{window_id}}-stats"