{% extends "base.html" %} {% load i18n %} {% load staticfiles %} {% block head %} {{ wizard.form.media}} {% endblock %} {% block extrahead %} {% load leaflet_tags %} {% leaflet_js %} {% leaflet_css %} {% endblock %} {% block title %} {% if edit == True %}{% trans 'Edit existing client' %}{% else %}{% trans 'Create a new client ' %}{% endif %} {% endblock %} {% block message %}
{% trans "Notice" %}
{% if not edit %}

{% trans 'No information will be saved until all the steps are completed.' %}

{% else %}

{% trans 'Save as soon as you are ready.' %}

{% endif %}
{% endblock %} {% block content %}
{% trans 'basic_information' as i18n_basic_information %} {% trans 'address_information' as i18n_address_information %} {% trans 'relationships' as i18n_relationships %} {% trans 'payment_information' as i18n_payment_information %} {% trans 'dietary_restriction' as i18n_dietary_restriction %} {% include 'client/create/steps.html' with step=1 url=i18n_basic_information icon='male' name=_('Personal') description=_('First name, last name, ...') %} {% include 'client/create/steps.html' with step=2 url=i18n_address_information icon='home' name=_('Address') description=_('Street number, city, ...') %} {% include 'client/create/steps.html' with step=3 url=i18n_relationships icon='treatment' name=_('Relationships') description=_('Referents, emergency contacts, ...') %} {% include 'client/create/steps.html' with step=4 url=i18n_payment_information icon='payment' name=_('Payment') description=_('Payment method, card, ...') %} {% include 'client/create/steps.html' with step=5 url=i18n_dietary_restriction icon='food' name=_('Preferences') description=_('Deliveries, restrictions, ...') %}
{% csrf_token %} {% if wizard.form.errors %}
{% trans 'Required information missing' %}

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

{% if not wizard.form.forms %} {{ wizard.form.errors }} {% endif %}
{% endif %} {{wizard.management_form}} {% include step_template %} {% if wizard.steps.prev and not edit %} {% endif %} {% if wizard.steps.step1 == 6 %} {% else %} {% endif %}
{% endblock %} {% block extrajs %} {% if debug %} {% else %} {% endif %} {% endblock %}