{% extends "ishtar/sheet.html" %} {% load i18n ishtar_helpers window_tables window_header window_field from_dict link_to_window %} {% block head_title %}{% trans "Area" %} - {{item.name}}{% if item.reference %} ({{item.reference}}){% endif %}{% endblock %} {% block toolbar %} {% window_nav item window_id 'show-area' %} {% 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.reference %} {{ item.reference }}{% endif %}

{{item.name}}

{% trans "Towns" %}
{% for town in item.towns.all %}{% if forloop.counter0 %} ; {% endif %}{{town}}{{town|simple_link_to_window}}{% endfor %}
{% with has_image=item.images.count %} {% if not has_image %}
{% endif %} {% if has_image %}
{#
#} {% endif %} {% endwith %}
{% comment %} {% if PROFILE.mapping and geo_item.main_geodata %}

{% trans "Geographic localisation" %}

{% with geo_item=item %} {% include "ishtar/blocks/sheet_map.html"%} {% endwith %}
{% endif %} {% endcomment %} {% if display_documents and item.documents.count %} {% trans "Documents" as area_docs %} {% dynamic_table_document area_docs 'documents' 'areas' 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 %}