{% extends "chimere/base.html" %} {% load i18n adminmedia chimere_tags inline_formset %} {% block extra_head %} {{ form.media }} {{ block.super }} {% head_chimere %} {% if dated %} {% endif %} {% endblock %} {% block content %} {{ block.super }} {% if submited %}{% submited %}{% endif %} {% if error_message %}

{{ error_message }}

{% endif %} {% if is_modification and is_superuser %}

{% trans "You are logged as an administrator. Your modifications will be taking into account immediately." %}

{% endif %}
{% if is_modification %}{% trans "Modify a route" %}{% else %}{% trans "Add a route" %}{% endif %}
{% csrf_token %}
{%if form.point.errors %}
  • {% trans "Select a location for this new site" %}
{%endif%} {{route_widget}}

* {% trans "indicates a mandatory field" %}

{{ form.name.errors }} {{ form.name }}
{{ form.categories.errors }} {{ form.categories }}
{{ form.description.errors }} {{ form.description }}
{% if dated %}
{{ form.start_date.errors }} {{ form.start_date }}

{{ form.start_date.help_text }}

{{ form.end_date.errors }} {{ form.end_date }}

{{ form.end_date.help_text }}

{% endif %}
{%for field in form%}{%for property in properties%}{%ifequal field.name property%}
{{ field.errors }} {{ field }}
{%endifequal%}{%endfor%}{%endfor%} {% inline_formset "Multimedia files" formset_multi %} {% inline_formset "Picture files" formset_picture %}

{% endblock %}