diff options
-rw-r--r-- | archaeological_finds/templates/ishtar/sheet_find.html | 4 | ||||
-rw-r--r-- | ishtar_common/templates/ishtar/blocks/sheet_json.html | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html index 092d0fc1e..f22c17137 100644 --- a/archaeological_finds/templates/ishtar/sheet_find.html +++ b/archaeological_finds/templates/ishtar/sheet_find.html @@ -195,14 +195,14 @@ </div> {% endif %} -{% include "ishtar/blocks/sheet_json.html" %} - {% if item.dating or item.dating_comment %} <h3>{% trans "Dating" %}</h3> {% field_flex "Dating" item.dating %} {% field_flex_full "Comment on dating" item.dating_comment "<pre>" "</pre>" %} {% endif %} +{% include "ishtar/blocks/sheet_json.html" %} + {% if item.container %} <h3>{% trans "Warehouse"%}</h3> <div class='row'> diff --git a/ishtar_common/templates/ishtar/blocks/sheet_json.html b/ishtar_common/templates/ishtar/blocks/sheet_json.html index 6aaf4bae7..8927eb057 100644 --- a/ishtar_common/templates/ishtar/blocks/sheet_json.html +++ b/ishtar_common/templates/ishtar/blocks/sheet_json.html @@ -1,8 +1,6 @@ {% load i18n window_field %} {% for json_section, json_fields in item.json_sections %} -{% if json_section %} -<h3>{{json_section}}</h3> -{% endif %} +<h3>{% if json_section %}{{json_section}}{% else %}{% trans "Data" %}{% endif %}</h3> {% for label, value in json_fields %} {% if forloop.first %}<div class='row'>{% endif %} {% field_flex label value %} |