summaryrefslogtreecommitdiff
path: root/archaeological_warehouse/templates/ishtar/sheet_warehouse.html
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-10-01 20:52:21 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-10-01 20:52:21 +0200
commit6aa950222fa284ae0602fc72cb2b8d6efb45a2e9 (patch)
tree1f381a194af3a3ba176781f2d635389be421b25f /archaeological_warehouse/templates/ishtar/sheet_warehouse.html
parent832d65819da20106006e80cddd101fe3ad49363e (diff)
downloadIshtar-6aa950222fa284ae0602fc72cb2b8d6efb45a2e9.tar.bz2
Ishtar-6aa950222fa284ae0602fc72cb2b8d6efb45a2e9.zip
Do not display DataTable error on prod
Diffstat (limited to 'archaeological_warehouse/templates/ishtar/sheet_warehouse.html')
-rw-r--r--archaeological_warehouse/templates/ishtar/sheet_warehouse.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/archaeological_warehouse/templates/ishtar/sheet_warehouse.html b/archaeological_warehouse/templates/ishtar/sheet_warehouse.html
index ae032a8a4..eed484d5a 100644
--- a/archaeological_warehouse/templates/ishtar/sheet_warehouse.html
+++ b/archaeological_warehouse/templates/ishtar/sheet_warehouse.html
@@ -62,6 +62,7 @@
{% if item.number_of_finds_by_place %}
<h4>{% trans "Finds by location in the warehouse" %}</h4>
{% for items in item.number_of_finds_by_place %}
+{% if items %}
<table class='table table-striped datatables'
id="{{window_id}}-find-by-loca-{{forloop.counter}}">
<thead>
@@ -79,6 +80,7 @@
{% endfor %}
</tbody>
</table>
+{% endif %}
{% endfor %}
{% endif %}
@@ -91,6 +93,7 @@
{% if item.number_of_containers_by_place %}
<h4>{% trans "Containers by location in the warehouse" %}</h4>
{% for items in item.number_of_containers_by_place %}
+{% if items %}
<table class='table table-striped datatables'
id="{{window_id}}-container-by-loca-{{forloop.counter}}">
<thead>
@@ -108,6 +111,7 @@
{% endfor %}
</tbody>
</table>
+{% endif %}
{% endfor %}
{% endif %}