diff options
Diffstat (limited to 'ishtar_common/templates/ishtar/sheet_town.html')
-rw-r--r-- | ishtar_common/templates/ishtar/sheet_town.html | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/ishtar_common/templates/ishtar/sheet_town.html b/ishtar_common/templates/ishtar/sheet_town.html index 425effd8b..2b0cf6e4b 100644 --- a/ishtar_common/templates/ishtar/sheet_town.html +++ b/ishtar_common/templates/ishtar/sheet_town.html @@ -1,5 +1,5 @@ {% extends "ishtar/sheet.html" %} -{% load i18n ishtar_helpers window_tables window_header window_field from_dict %} +{% load i18n ishtar_helpers window_tables window_header window_field from_dict link_to_window %} {% block head_title %}<strong>{% trans "Town" %}</strong> - {{item.name}}{% if item.numero_insee %} ({{item.numero_insee}}){% endif %}{% endblock %} @@ -51,13 +51,12 @@ {% include "ishtar/blocks/window_image.html" %} <div class="card-body"> <div class="row"> - <div class="col main"> + <div class="col main text-center"> {% if item.numero_insee %} - <strong>{{ item.numero_insee }}</strong - >{% endif %} + <strong>{{ item.numero_insee }}</strong>{% endif %} </div> </div> - <div class="card-text"> + <div class="card-text text-center"> <p class='window-refs' title="{% trans 'Name' %}">{{item.name}}</p> </div> </div> @@ -65,29 +64,37 @@ <div class="row"> {% if item.surface %} - <dl class="col-12 col-md-6 col-lg-3 flex-wrap"> - <dt>{%trans "Surface"%}</dt> + <dl class="col-12 col-lg-9 flex-wrap"> + <dt>{% trans "Surface" %}</dt> <dd> {{ item.surface }} m<sup>2</sup> ({{ item.surface_ha }} ha) </dd> </dl> {% endif %} + {% if item.areas.count %} + <dl class="col-12 col-lg-9 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> </div> {% endif %} {% if has_image %} - </div> {# <div> #} + </div></div> {% endif %} {% endwith %} <hr class="clearfix"> + {% if PROFILE.mapping and geo_item.main_geodata %} <h3>{% trans "Geographic localisation" %}</h3> <div class="row"> {% with geo_item=item %} {% include "ishtar/blocks/sheet_map.html"%} {% endwith %} </div> + {% endif %} {% if display_documents and item.documents.count %} {% trans "Documents" as town_docs %} |