{% extends "base.html" %} {% load i18n %} {% load l10n %} {% load static %} {% load rules %} {% block title %}{% trans "Edit delivery:" %}: {{ delivery_history.route.name }} {% endblock %} {% block extrahead %} {% load leaflet_tags %} {% leaflet_css %} {% endblock %} {% block content %} {% has_perm 'sous_chef.edit' request.user as can_edit_data %} {% include 'kitchen_count_steps.html' with step='routes' %}
{% trans 'Map and Directions' %}
{% 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 %}
{{ form.vehicle }}
{% for client in clients_on_delivery_history %} {% endfor %}
# {% trans 'Name' %} {% trans 'Status' %} {% trans 'Delivery type' %} {% trans 'View order' %} {% trans 'Address' %} {% trans 'Status' %}
{{ forloop.counter }} {{ client.member.firstname }} {{ client.member.lastname }} {{ client.get_status_display }} {{ client.get_delivery_type_display }} {% if client.order_of_the_day %} {% trans 'Order #' %}{{ client.order_of_the_day.pk }} {% else %} {% trans "[DELETED]" %} {% endif %} {{ client.member.address }} {% if client.has_been_configured %} {% else %} {% endif %}
{% leaflet_map "delivery_history_edit_map" callback="__map_init" %}
{{ form.comments }}
{% trans 'Cancel' %}
{% endblock %} {% block extrajs %} {% leaflet_js %} {% if debug %} {% else %} {% endif %} {% endblock %}