From e95afd17d217d41e91f7510ed0a9b2fd273b9fa5 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 18 Oct 2017 12:58:54 +0200 Subject: Json fields: adapt main sheets to display dynamic json fields (refs #3077) --- .../templates/ishtar/sheet_contextrecord.html | 2 ++ archaeological_files/templates/ishtar/sheet_file.html | 2 ++ archaeological_finds/templates/ishtar/sheet_find.html | 2 ++ archaeological_finds/templates/ishtar/sheet_treatment.html | 2 ++ archaeological_finds/templates/ishtar/sheet_treatmentfile.html | 2 ++ archaeological_warehouse/templates/ishtar/sheet_container.html | 2 ++ archaeological_warehouse/templates/ishtar/sheet_warehouse.html | 2 ++ 7 files changed, 14 insertions(+) diff --git a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html index 170c2d87c..e1ea9019b 100644 --- a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html +++ b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html @@ -29,6 +29,8 @@ {% field "Comment on datings" item.datings_comment "
" "
" %} +{% include "ishtar/blocks/sheet_json.html" %} + {% if item.diameter or item.depth_of_appearance or item.documentations.count or item.description or item.lenght or item.width or item.depth or item.thickness or item.comment %}

{% trans "Description"%}

{% field "Description" item.description "
" "
" %} diff --git a/archaeological_files/templates/ishtar/sheet_file.html b/archaeological_files/templates/ishtar/sheet_file.html index 6d64a975f..6eda1124a 100644 --- a/archaeological_files/templates/ishtar/sheet_file.html +++ b/archaeological_files/templates/ishtar/sheet_file.html @@ -44,6 +44,8 @@ {% field "Comment" item.comment "
" "
" %} +{% include "ishtar/blocks/sheet_json.html" %} +

{% trans "Localisation"%}

{% if item.towns.count %}

{{ item.towns.all|join:", " }}

{% endif %} {% if item.departments.count %}

{{ item.departments.all|join:", " }}

{% endif %} diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html index efd38e406..68304740d 100644 --- a/archaeological_finds/templates/ishtar/sheet_find.html +++ b/archaeological_finds/templates/ishtar/sheet_find.html @@ -58,6 +58,8 @@ {% field "Description" item.description "
" "
" %} {% field "Comment" item.comment "
" "
" %} +{% include "ishtar/blocks/sheet_json.html" %} + {% if item.conservatory_state or item.conservatory_comment or item.alterations.count or item.alteration_causes.count or item.preservation_to_considers.count or item.treatment_emergency or item.insurance_value %}

{% trans "Preservation" %}

{% field "Comment" item.comment "
" "
" %} +{% include "ishtar/blocks/sheet_json.html" %} + {% if item.applicant %}

{% trans "Applicant" %}