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 --- .../templates/ishtar/sheet_contextrecord.html | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'archaeological_context_records') diff --git a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html index 17f063fa3..aea498b8a 100644 --- a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html +++ b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html @@ -1,7 +1,7 @@ {% extends "ishtar/sheet.html" %} {% load i18n ishtar_helpers window_field window_header window_tables window_field %} -{% block head_title %}{% trans "Context Record" %} - {{item.full_label}}{% endblock %} +{% block head_title %}{% trans "Context Record" %} - {{item.cached_label}}{% endblock %} {% block toolbar %} {% window_nav item window_id 'show-contextrecord' 'record_modify' 'show-historized-contextrecord' 'revert-contextrecord' previous next 1 %} @@ -122,16 +122,17 @@
{% include "ishtar/blocks/window_image.html" %}
- {% if item.complete_identifier %}

- {{ item.complete_identifier }}

{% endif %} +

+ {{ item.cached_label }}

{{ item.parcel.short_label }}

-

{{ item.label|default:"" }}

+ {% if item.label != item.external_id %} +

{{ item.label|default:"" }}

{% endif %} {% include "ishtar/blocks/sheet_external_id.html" %}
- {% field_flex_2 "Complete ID" item.full_label %} + {% if item.cached_label != item.complete_identifier %}{% field_flex_2 "Complete ID" item.complete_identifier %}{% endif %} {% field_flex_2 "Type" item.unit %} {% field_flex_detail _("Excavator") item.excavator %} {% field_flex_full "General comment" item.comment "
" "
" has_image %} -- cgit v1.2.3