From f4eceb80557e2141e8535cc1b555c1a72e3e8ddd Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 25 Jun 2024 18:58:44 +0200 Subject: ✨ Notices - Town: add old town, new town reference on notices (refs #5380, #5732) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/templates/ishtar/sheet_town.html | 34 ++++++++++++++++++-------- 1 file changed, 24 insertions(+), 10 deletions(-) (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/ishtar/sheet_town.html b/ishtar_common/templates/ishtar/sheet_town.html index 7b86b9bf1..448ea6752 100644 --- a/ishtar_common/templates/ishtar/sheet_town.html +++ b/ishtar_common/templates/ishtar/sheet_town.html @@ -75,22 +75,36 @@ {% endif %} {% field_flex "Department" item.departement %} + {% with has_image=item.images.count %} + {% if not has_image %} + + + {% endif %} + {% if has_image %} + + {% endif %} + {% endwith %} +
+
{% if item.areas.count %} -
+
{% trans "Areas" %}
{% for area in item.areas.all %}{% if forloop.counter0 %} ; {% endif %}{{area}}{{area|simple_link_to_window}}{% endfor %}
{% endif %} - {% with has_image=item.images.count %} - {% if not has_image %} -
+ {% if item.children.count %} +
+
{% trans "Old town of" %}
+
{% for town in item.children.all %}{% if forloop.counter0 %} ; {% endif %}{{town}}{{town|simple_link_to_window}}{% endfor %}
+
+ {% endif %} + {% if item.parents.count %} +
+
{% trans "New town for" %}
+
{% for town in item.parents.all %}{% if forloop.counter0 %} ; {% endif %}{{town}}{{town|simple_link_to_window}}{% endfor %}
+
+ {% endif %} - {% endif %} - {% if has_image %} - - {% endif %} - {% endwith %} -
{% if PROFILE.mapping and item.main_geodata %}

{% trans "Geographic localisation" %}

-- cgit v1.2.3