{% extends "mapit/base.html" %}
{% load i18n %}
{% block title %}{{ area.name }}{% endblock title %}
{% block content %}
{% url "mapit_index" as index_url %}
{{ area.name }} ID {{ area.id }}
- {%trans "Type" %}: {{ area.type.description }} ({{ area.type.code }})
- {%trans "Exists in generations" %}: {{ area.generation_low.id }}–{{ area.generation_high.id }}
- {% trans "Country" %}: {{ area.list_countries|join:", "|default:"-" }}
{% if area.parent_area %}
{% with area.parent_area.id|slugify as area_id %}
- {% blocktrans with name=area.parent_area.name url=index_url|add:"area/"|add:area_id|add:".html" %}A child of {{ name }}.{% endblocktrans %}
{% endwith %}
{% endif %}
{% if postcodes_available %}
{% if area.polygons.count or area.postcodes.count %}
- {% trans "Example postcode" %}
{% endif %}
{% endif %}
{% if area.children.count %}
- {% trans "Children" %}
{% endif %}
{% with area.id|slugify as area_id %}
- {% blocktrans with json_url=index_url|add:"area/"|add:area_id %}Get this data as JSON{% endblocktrans %}
{% endwith %}
{% block area_info_extra %}{% endblock %}
{% if area.polygons.count %}
{% include "mapit/map/init.html" %}
{% with area.id|slugify as area_id %}
{% include "mapit/map/json.html" with geojson_url="area/"|add:area_id %}
{% endwith %}
{% endif %}
-
{% if area.polygons.count %}
{% trans "Geometry" %}:
{% endif %}
-
{% if area.polygons.count %}
{% trans "Areas" %}:
{% endif %}
-
{% trans "Codes" %}:
{% for code_type, code, code_link in codes %}
- {{ code_type }}:
{% if code_link %}
{{ code }}
{% else %}
{{ code }}
{% endif %}
{% empty %}
- {% trans "No codes found" %}.
{% endfor %}
-
{% trans "Alternative Names" %}
{% for language, name in alternative_names %}
- {{ name }} in {{ language }}
{% empty %}
- {% trans "No alternative names found" %}.
{% endfor %}
{% endblock %}