From b1636dc85eb058e751917d5701e46b6fd5cbde30 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 6 Apr 2022 12:01:01 +0200 Subject: Base finds: display JSON data --- archaeological_finds/templates/ishtar/sheet_basefind.html | 3 +++ archaeological_finds/templates/ishtar/sheet_find.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'archaeological_finds') diff --git a/archaeological_finds/templates/ishtar/sheet_basefind.html b/archaeological_finds/templates/ishtar/sheet_basefind.html index aa41ee34b..c57e0d681 100644 --- a/archaeological_finds/templates/ishtar/sheet_basefind.html +++ b/archaeological_finds/templates/ishtar/sheet_basefind.html @@ -45,6 +45,9 @@ {% field_flex_full "Description" base_find.description "
" "
" first %} {% field_flex_full "Comment" base_find.comment "
" "
" first %} + {% with item=base_find %} + {% include "ishtar/blocks/sheet_json.html" %} + {% endwith %}

{% trans "Sheet"%}

{% with item.history_creation_date|date:"SHORT_DATETIME_FORMAT" as creation_date %} diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html index 8d933d3fb..a1a8f41e5 100644 --- a/archaeological_finds/templates/ishtar/sheet_find.html +++ b/archaeological_finds/templates/ishtar/sheet_find.html @@ -481,7 +481,7 @@ {% dynamic_table_document finds_docs 'documents' 'finds' item.pk '' output %}
{% endif %} - {% if item.data %} + {% if item.data and item.data != {} %}
{% include "ishtar/blocks/sheet_json.html" %} -- cgit v1.2.3