{% extends "ishtar/sheet.html" %} {% load i18n ishtar_helpers window_tables window_header window_field from_dict %} {% block head_title %}{% trans "Town" %} - {{item.name}}{% if item.numero_insee %} ({{item.numero_insee}}){% endif %}{% endblock %} {% block toolbar %} {% window_nav item window_id 'show-town' %} {% endblock %} {% block content %} {# trick to set to null non existing variable #} {% with permission_view_document=permission_view_document %} {% with permission_view_own_document=permission_view_own_document %} {% with permission_change_own_geovectordata=permission_change_own_geovectordata %} {% with permission_change_geovectordata=permission_change_geovectordata %} {% with permission_change_geo=permission_change_own_geovectordata|or_:permission_change_geovectordata %} {% with perm_documents=permission_view_own_document|or_:permission_view_document %} {% with has_documents=item|safe_or:"documents.count|documents_list" %} {% with display_documents=perm_documents|and_:has_documents %} {% if output != "ODT" and output != "PDF" %} {% endif %}
{% include "ishtar/blocks/window_image.html" %}
{% if item.numero_insee %} {{ item.numero_insee }}{% endif %}

{{item.name}}

{% if item.surface %}
{%trans "Surface"%}
{{ item.surface }} m2 ({{ item.surface_ha }} ha)
{% endif %} {% with has_image=item.images.count %} {% if not has_image %}
{% endif %} {% if has_image %}
{#
#} {% endif %} {% endwith %}

{% trans "Geographic localisation" %}

{% with geo_item=item %} {% include "ishtar/blocks/sheet_map.html"%} {% endwith %}
{% if display_documents and item.documents.count %} {% trans "Documents" as town_docs %} {% dynamic_table_document town_docs 'documents' 'towns' item.pk '' output %} {% endif %}
{% if not is_external and SHOW_GEO %}
{% with geo_item=item %}{% include "ishtar/blocks/sheet_geographic.html" %}{% endwith %}
{% endif %}
{% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endblock %}