{% load i18n %} {% comment %} Fragment template loaded asynchronously into a Bootstrap modal. Variables: form – Django Form instance (bound or unbound) instance – Model instance (None for create) thematic_code – e.g. "trafficlights" location_type – e.g. "trafficlightintersection" entry_label – Human-readable type label, e.g. "Intersection" {% endcomment %} {% if form.non_field_errors %}
{{ form.non_field_errors }}
{% endif %}
{% for field in form %} {% if field.name != 'lat' and field.name != 'lon' and field.name != 'geom_geojson' %}
{{ field }} {% if field.errors %} {% for error in field.errors %}
{{ error }}
{% endfor %} {% endif %} {% if field.help_text %}
{{ field.help_text }}
{% endif %}
{% endif %} {% endfor %}
{% if form.geom_geojson %} {% include "assets/components/map_polygon_picker.html" %} {% else %} {% include "assets/components/map_location_picker.html" %} {% endif %}