{% extends 'base.html' %} {% load i18n widget_tweaks thumbnail %} {% block meta_title %} {% trans 'Order registration' %} {% endblock %} {% block search %} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block content %} {% if not request.cart.is_empty %}

{% trans 'Order registration' %}

{% csrf_token %} {% if form.non_field_errors %}
{{ form.non_field_errors.as_text }}
{% endif %}
{{ form.first_name.label_tag }} * {{ form.first_name|add_class:"form-control" }} {{ form.first_name.errors }}
{{ form.last_name.label_tag }} * {{ form.last_name|add_class:"form-control" }} {{ form.last_name.errors }}
{{ form.middle_name.label_tag }} {{ form.middle_name|add_class:"form-control" }} {{ form.middle_name.errors }}
{{ form.mobile.label_tag }} * {{ form.mobile|add_class:"form-control" }} {{ form.mobile.errors }}
{{ form.payment_method.label_tag }} * {{ form.payment_method|add_class:"form-control" }} {{ form.payment_method.errors }}

{{ form.delivery_method.label_tag }} * {{ form.delivery_method|add_class:"form-control" }} {{ form.delivery_method.errors }}
{{ form.city.label_tag }} * {{ form.city|add_class:"form-control" }} {{ form.city.errors }}
{{ form.warehouse|add_class:"form-control" }} {{ form.warehouse.errors }}
{{ form.comment.label_tag }} {{ form.comment|add_class:"form-control"|attr:'rows:4' }} {{ form.comment.errors }}

{% trans 'Products' %} ({{ request.cart.count }})

{% for item in request.cart.items %}
{% include "products/logo.html" with product=item.product %}
{{ item.name }} {% include "products/state.html" with product=item.product %} {% include "products/manufacturer.html" with product=item.product %}
{% trans 'Price' %}: {{ item.printable_price }}
{% trans 'Quantity' %}: {{ item.qty }}

{% endfor %}
{% trans 'To pay' %}

{{ request.cart.printable_total }}

{% else %}
{% trans 'Cart is empty' %}. {% trans 'Continue shopping' %}
{% endif %} {% endblock %} {% block css %} {{ block.super }} {% endblock %} {% block js %} {{ block.super }} {% endblock %}