{% extends "shop/base.html" %} {% load i18n %} {% block extra-head %} {% include "contact/_contact_info_form.html" %} {% endblock %} {% block navbar %}
  • {% trans "Home" %}
  • {% trans "Account" %}
  • {% trans "Add Address" %}
  • {% endblock %} {% block content %} {% if editing %}

    {% trans "Edit address book entry" %}

    {% else %}

    {% trans "Add address to your address book" %}

    {% endif %} {% if form.non_field_errors %}

    {% trans "Please correct the following error:" %}

    {{ form.non_field_errors }} {% endif %} {% if editing %}
    {% csrf_token %} {% else %} {% csrf_token %} {% endif %} {% if form.addressee_name.errors %}{% endif %} {% if form.description.errors %}{% endif %} {% if form.street1.errors %}{% endif %} {% if form.street2.errors %}{% endif %} {% if form.city.errors %}{% endif %} {% if country %} {% if form.fields.state.choices %} {% endif %} {% else %} {% endif %} {% if form.state.errors %}{% endif %} {% if form.postal_code.errors %}{% endif %} {% if not country %} {% if form.country.errors %}{% endif %} {% endif %} {% if editing %} {% else %} {% endif %}

    {% trans "You'll need to fill out at least the fields with a *" %}

    {% trans "Address Information" %}

    {{ form.addressee_name }}
     *** {{ form.addressee_name.errors|join:", " }}
    {{ form.description }}
     *** {{ form.description.errors|join:", " }}
    {{ form.street1 }}
    *** {{ form.street1.errors|join:", " }}
    {{ form.street2 }}
    *** {{ form.street2.errors|join:", " }}
    {{ form.city }}
    *** {{ form.city.errors|join:", " }}
    {{ form.state }}
    {{ form.state }}
    *** {{ form.state.errors|join:", " }}
    {{ form.postal_code }}
    *** {{ form.postal_code.errors|join:", " }}
    {{ form.country }}
    *** {{ form.country.errors|join:", " }}
    {% endblock %}