diff options
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 |
commit | 6aa950222fa284ae0602fc72cb2b8d6efb45a2e9 (patch) | |
tree | 1f381a194af3a3ba176781f2d635389be421b25f /archaeological_warehouse | |
parent | 832d65819da20106006e80cddd101fe3ad49363e (diff) | |
download | Ishtar-6aa950222fa284ae0602fc72cb2b8d6efb45a2e9.tar.bz2 Ishtar-6aa950222fa284ae0602fc72cb2b8d6efb45a2e9.zip |
Do not display DataTable error on prod
Diffstat (limited to 'archaeological_warehouse')
-rw-r--r-- | archaeological_warehouse/templates/ishtar/sheet_warehouse.html | 4 |
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 %} |