diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-04-06 12:01:01 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-04-06 12:01:01 +0200 |
commit | b1636dc85eb058e751917d5701e46b6fd5cbde30 (patch) | |
tree | cc753df5c85d9d4c68037c011958ed620d967ca4 /archaeological_finds | |
parent | ccaee8c26350bd00adfb771d6f35c663ef115b5a (diff) | |
download | Ishtar-b1636dc85eb058e751917d5701e46b6fd5cbde30.tar.bz2 Ishtar-b1636dc85eb058e751917d5701e46b6fd5cbde30.zip |
Base finds: display JSON data
Diffstat (limited to 'archaeological_finds')
-rw-r--r-- | archaeological_finds/templates/ishtar/sheet_basefind.html | 3 | ||||
-rw-r--r-- | archaeological_finds/templates/ishtar/sheet_find.html | 2 |
2 files changed, 4 insertions, 1 deletions
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 "<pre>" "</pre>" first %} {% field_flex_full "Comment" base_find.comment "<pre>" "</pre>" first %} </div> + {% with item=base_find %} + {% include "ishtar/blocks/sheet_json.html" %} + {% endwith %} <h3>{% trans "Sheet"%}</h3> <div class='row'> {% 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 %} </div> {% endif %} - {% if item.data %} + {% if item.data and item.data != {} %} <div class="tab-pane fade" id="{{window_id}}-json" role="tabpanel" aria-labelledby="{{window_id}}-json-tab"> {% include "ishtar/blocks/sheet_json.html" %} |