{% extends "base.html" %} {% load i18n %} {% load l10n %} {% load static %} {% load rules %} {% block title %} {% trans 'Edit route:' %} {{route.name}} {% endblock %} {% block extrahead %} {% load leaflet_tags %} {% leaflet_css %} {% endblock %} {% block content %} {% has_perm 'sous_chef.edit' request.user as can_edit_data %}
{% csrf_token %} {% if form.errors %}
{% trans 'Required information missing' %}

{% trans 'Please review the form to make sure that all required fields are filled.' %}

{{ form.errors }}
{% endif %}

{% trans 'Basic Information' %}

{{ form.name }}
{{ form.description }}
{{ form.vehicle }}
{% for client in clients_on_route %} {% endfor %}
# {% trans 'Name' %} {% trans 'Status' %} {% trans 'Delivery type' %} {% trans 'Address' %} {% trans 'Status' %}
{{ forloop.counter }} {{ client.member.firstname }} {{ client.member.lastname }} {{ client.get_status_display }} {{ client.get_delivery_type_display }} {{ client.member.address }} {% if client.has_been_configured %} {% else %} {% endif %}

{% trans 'Delivery Preview' %}

{% leaflet_map "route_edit_map" callback="__map_init" %}

{% trans "Cancel" %}
{% endblock %} {% block extrajs %} {% leaflet_js %} {% if debug %} {% else %} {% endif %} {% endblock %}