From 7e057a2b05f99fefb0bbd9496ccb873a1fa9724b Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sat, 21 Sep 2024 14:20:05 +0200 Subject: 🩹 minor improvments on sheets - add getter for templates and index MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archaeological_operations/templates/ishtar/sheet_site.html | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'archaeological_operations/templates') diff --git a/archaeological_operations/templates/ishtar/sheet_site.html b/archaeological_operations/templates/ishtar/sheet_site.html index 718947e19..f87888655 100644 --- a/archaeological_operations/templates/ishtar/sheet_site.html +++ b/archaeological_operations/templates/ishtar/sheet_site.html @@ -25,9 +25,9 @@ {% if item.complete_identifier %}

{{ item.complete_identifier }}

{% endif %} - -
- {% include "ishtar/blocks/sheet_external_id.html" %} +

+ {% include "ishtar/blocks/sheet_external_id.html" %} +

@@ -51,8 +51,12 @@ {% field_flex_multiple_obj "Cultural attributions" item 'cultural_attributions' %} {% field_flex_detail _("Discoverer") item.discoverer %} {% field_flex_multiple "Collaborators" item.collaborators %} + {% if item.description == item.public_description %} + {% field_flex_full _("Description/Public description") item.description "

" "
" %} + {% else %} {% field_flex_full _("Description") item.description "
" "
" %} - {% field_flex_full _("Public description") item.description "
" "
" %} + {% field_flex_full _("Public description") item.public_description "
" "
" %} + {% endif %} {% field_flex_full "Comment" item.comment "
" "
" %} @@ -83,7 +87,7 @@ {% else %} {% field_flex_detail_multiple_full "Towns" item.towns %} {% endif %} - {% field_flex_full _("Precise locality") item.precise_locality "
" "
" %} + {% field_flex_full _("Address") item.precise_locality "
" "
" %} {% field_flex_full "National Geographic Institute locality" item.locality_ngi "
" "
" %} {% field_flex_full "Cadastral locality" item.locality_cadastral "
" "
" %} -- cgit v1.2.3