From af865c9ecc18fe31e56c7aff26ab05e8ef40421a Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 27 Aug 2018 18:11:56 +0200 Subject: Adapt JSON field on sheets. --- .../templates/ishtar/sheet_contextrecord.html | 2 -- archaeological_files/templates/ishtar/sheet_file.html | 3 ++- archaeological_operations/templates/ishtar/sheet_site.html | 2 ++ archaeological_warehouse/templates/ishtar/sheet_container.html | 2 +- ishtar_common/templates/ishtar/sheet_document.html | 2 ++ 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html index 6137e6be8..2cb4c1dcb 100644 --- a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html +++ b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html @@ -24,8 +24,6 @@ - -
{% field_flex "Complete ID" item.full_label %} {% include "ishtar/blocks/sheet_creation_section.html" %} diff --git a/archaeological_files/templates/ishtar/sheet_file.html b/archaeological_files/templates/ishtar/sheet_file.html index 2e65fab11..062dbc5a8 100644 --- a/archaeological_files/templates/ishtar/sheet_file.html +++ b/archaeological_files/templates/ishtar/sheet_file.html @@ -61,9 +61,10 @@ {% field_flex "Type" item.file_type %} {% field_flex_detail "Related file" item.related_file %} {% field_flex_full "Comment" item.comment "
" "
" %} - {% include "ishtar/blocks/sheet_json.html" %}
+{% include "ishtar/blocks/sheet_json.html" %} +

{% trans "Localisation"%}

{% field_flex_multiple "Towns" item.towns %} diff --git a/archaeological_operations/templates/ishtar/sheet_site.html b/archaeological_operations/templates/ishtar/sheet_site.html index 9836a25b0..a69609f90 100644 --- a/archaeological_operations/templates/ishtar/sheet_site.html +++ b/archaeological_operations/templates/ishtar/sheet_site.html @@ -64,6 +64,8 @@
{% endif %} +{% include "ishtar/blocks/sheet_json.html" %} + {% trans "Operations" as operations %} {% if item.operations.count %} {% dynamic_table_document operations 'operations' 'archaeological_sites' item.pk '' output %} diff --git a/archaeological_warehouse/templates/ishtar/sheet_container.html b/archaeological_warehouse/templates/ishtar/sheet_container.html index d29d74c00..ff5aeb04b 100644 --- a/archaeological_warehouse/templates/ishtar/sheet_container.html +++ b/archaeological_warehouse/templates/ishtar/sheet_container.html @@ -32,9 +32,9 @@ {% include "ishtar/blocks/sheet_creation_section.html" %} {% field_flex "Location" item.precise_location %} {% field_flex_full "Comment" item.comment "
" "
" %} - {% include "ishtar/blocks/sheet_json.html" %} +{% include "ishtar/blocks/sheet_json.html" %} {% if item.finds.count %}

{% trans "Content" %}

diff --git a/ishtar_common/templates/ishtar/sheet_document.html b/ishtar_common/templates/ishtar/sheet_document.html index 7405224e2..465c02db5 100644 --- a/ishtar_common/templates/ishtar/sheet_document.html +++ b/ishtar_common/templates/ishtar/sheet_document.html @@ -44,6 +44,8 @@ {% field_flex_full "Authors" item.authors|add_links:'person' %} +{% include "ishtar/blocks/sheet_json.html" %} + {% block related %} {% if item.has_related %}

{% trans "Related items" %}

-- cgit v1.2.3