From c2c438f1d820cfdfc939975fa38641a1c3567899 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 10 Sep 2024 12:30:40 +0200 Subject: 🩹 sheet administrativ act: display custom fields MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/ishtar/sheet_administrativeact.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/archaeological_operations/templates/ishtar/sheet_administrativeact.html b/archaeological_operations/templates/ishtar/sheet_administrativeact.html index 2c52ffae7..1044a3dad 100644 --- a/archaeological_operations/templates/ishtar/sheet_administrativeact.html +++ b/archaeological_operations/templates/ishtar/sheet_administrativeact.html @@ -45,7 +45,9 @@ {% field_flex "Type" item.act_type %} {% field_flex "Object" item.act_object %} {% field_flex_detail "Signatory" item.signatory %} - {% field_flex "Signature date" item.signature_date %} + {% with signature_date=item.signature_date|date:"DATE_FORMAT"|default:"" %} + {% field_flex "Signature date" signature_date %} + {% endwith %} {% field_flex "In charge" item.in_charge %} {% field_flex "Archaeological preventive operator" item.operator %} {% field_flex_detail "Associated file" item.associated_file %} @@ -69,6 +71,10 @@ {% endcomment %} {% field_flex_full "Comment" item.comment "
" "
" %} + {% if item.json_sections %} +

{% trans "Custom fields" %}

+ {% include "ishtar/blocks/sheet_json.html" %} + {% endif %} {% if item.documents.count %}
-- cgit v1.2.3