From d55a5ec58047dc53118dce1d3aecbeb398cf57de Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 7 Jun 2024 13:34:38 +0200 Subject: 🐛 Sheet: add missing fields, improve layout (refs #5863, #5864, #5865, #5866, #5867, #5868, #5869, #5870, #5871, #5872) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/ishtar/sheet_find.html | 33 +--------------------- .../templates/ishtar/sheet_treatment.html | 4 +-- .../templates/ishtar/sheet_treatmentfile.html | 6 ++-- 3 files changed, 6 insertions(+), 37 deletions(-) (limited to 'archaeological_finds') diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html index 6af22839f..c0f525dfa 100644 --- a/archaeological_finds/templates/ishtar/sheet_find.html +++ b/archaeological_finds/templates/ishtar/sheet_find.html @@ -253,38 +253,7 @@ {% endif %} {% if dating_list %} - - - - - - - - - - {% for dating in dating_list %} - - - - - - - - - {% endfor %} -
{% trans "Chronological period" %}{% trans "Start date" %}{% trans "End date" %}{% trans "Dating type" %}{% trans "Quality" %}{% trans "Precise on this dating" %}
- {{dating.period}} - - {{dating.start_date|default_if_none:"-"}} - - {{dating.end_date|default_if_none:"-"}} - - {{dating.dating_type|default_if_none:"-"}} - - {{dating.quality|default_if_none:"-"}} - - {{dating.precise_dating|default_if_none:"-"}} -
+ {% include "ishtar/blocks/sheet_dating_list.html" %} {% endif %}
{% field_flex_full "Comment on dating" item.dating_comment "
" "
" %} diff --git a/archaeological_finds/templates/ishtar/sheet_treatment.html b/archaeological_finds/templates/ishtar/sheet_treatment.html index b5025b3fe..772cfd903 100644 --- a/archaeological_finds/templates/ishtar/sheet_treatment.html +++ b/archaeological_finds/templates/ishtar/sheet_treatment.html @@ -1,5 +1,5 @@ {% extends "ishtar/sheet.html" %} -{% load i18n window_field from_dict link_to_window window_tables window_ope_tables window_header humanize %} +{% load i18n l10n window_field from_dict link_to_window window_tables window_ope_tables window_header humanize %} {% block head_title %}{% trans "Treatment" %} - {{ item|default:"" }}{% endblock %} @@ -63,7 +63,7 @@

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

{% if item.other_reference %}

{{ item.other_reference }}

{% endif %} -

{{ item.year }} - {{ item.index }}

+

{{ item.year|unlocalize }} - {{ item.index|unlocalize }}

{% if item.external_id %}

{{ item.external_id }}

{% endif %} {% if item.end_date %} diff --git a/archaeological_finds/templates/ishtar/sheet_treatmentfile.html b/archaeological_finds/templates/ishtar/sheet_treatmentfile.html index eacf853ca..676d3b4a6 100644 --- a/archaeological_finds/templates/ishtar/sheet_treatmentfile.html +++ b/archaeological_finds/templates/ishtar/sheet_treatmentfile.html @@ -40,9 +40,9 @@ {% field_flex "Type" item.type %} {% field_flex_detail "Responsible" item.in_charge %} {% field_flex_detail "Associated basket" item.associated_basket %} - {% field_flex "Reception date" item.reception_date %} - {% field_flex "Start date" item.creation_date %} - {% field_flex "Closing date" item.end_date %} + {% field_flex "Reception date" item.reception_date|date:"DATE_FORMAT" %} + {% field_flex "Start date" item.creation_date|date:"DATE_FORMAT" %} + {% field_flex "Closing date" item.end_date|date:"DATE_FORMAT" %} {% field_flex_full "Comment" item.comment "
" "
" %} {% include "ishtar/blocks/sheet_json.html" %}
-- cgit v1.2.3