diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-06-25 18:58:44 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-06-25 18:58:44 +0200 |
commit | f4eceb80557e2141e8535cc1b555c1a72e3e8ddd (patch) | |
tree | 59a1b1990f17f8c39dbd60462a54dd158020ffea /ishtar_common/templates | |
parent | 1d416a4bb927fb501c452b2c7c4b1f3e9c3c8e0c (diff) | |
download | Ishtar-f4eceb80557e2141e8535cc1b555c1a72e3e8ddd.tar.bz2 Ishtar-f4eceb80557e2141e8535cc1b555c1a72e3e8ddd.zip |
✨ Notices - Town: add old town, new town reference on notices (refs #5380, #5732)
Diffstat (limited to 'ishtar_common/templates')
-rw-r--r-- | ishtar_common/templates/ishtar/sheet_town.html | 34 |
1 files changed, 24 insertions, 10 deletions
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 @@ </dl> {% endif %} {% field_flex "Department" item.departement %} + {% with has_image=item.images.count %} + {% if not has_image %} + </div> + </div> + {% endif %} + {% if has_image %} + </div></div> + {% endif %} + {% endwith %} + <hr class="clearfix"> + <div class="row"> {% if item.areas.count %} - <dl class="col-12 col-lg-6 flex-wrap"> + <dl class="col-12 flex-wrap"> <dt>{% trans "Areas" %}</dt> <dd>{% for area in item.areas.all %}{% if forloop.counter0 %} ; {% endif %}{{area}}{{area|simple_link_to_window}}{% endfor %}</dd> </dl> {% endif %} - {% with has_image=item.images.count %} - {% if not has_image %} - </div> + {% if item.children.count %} + <dl class="col-12 flex-wrap"> + <dt>{% trans "Old town of" %}</dt> + <dd>{% for town in item.children.all %}{% if forloop.counter0 %} ; {% endif %}{{town}}{{town|simple_link_to_window}}{% endfor %}</dd> + </dl> + {% endif %} + {% if item.parents.count %} + <dl class="col-12 flex-wrap"> + <dt>{% trans "New town for" %}</dt> + <dd>{% for town in item.parents.all %}{% if forloop.counter0 %} ; {% endif %}{{town}}{{town|simple_link_to_window}}{% endfor %}</dd> + </dl> + {% endif %} </div> - {% endif %} - {% if has_image %} - </div></div> - {% endif %} - {% endwith %} - <hr class="clearfix"> {% if PROFILE.mapping and item.main_geodata %} <h3>{% trans "Geographic localisation" %}</h3> <div class="row"> |