{% extends "lfs/base.html" %} {% load i18n lfs_tags %} {% block title %} {% trans 'Checkout' %} - {{ block.super }} {% endblock %} {% block section %}checkout{% endblock %} {% block breadcrumbs %} {% breadcrumbs _("Checkout") %} {% endblock %} {% block wrapper %} {% if checkout_form.errors %}
{% trans "The operation could not be performed because one or more errors occurred. Please see below." %}
{% endif %}
{% csrf_token %} {# Invoice Address #} {# Shipping Address #}
{% trans 'Invoice address' %} {# uncomment if LFS_CHECKOUT_NOT_REQUIRED_ADDRESS = 'invoice' #} {% comment %}({{ checkout_form.no_invoice_field }} {{ checkout_form.no_invoice_field.label_tag }}){% endcomment %} {% trans 'Shipping address' %} ({{ checkout_form.no_address_field }} {{ checkout_form.no_address_field.label_tag }})
{{ invoice_address_inline|safe }}
{{ shipping_address_inline|safe }}
{# Shipping #}

{% trans 'Shipping' %}

{{ shipping_inline|safe }}
{# Payment #}
{{ payment_inline|safe }}
{% if display_credit_card %}
{% trans 'Please enter your credit card information' %} {% if credit_card_form.errors.credit_card %}
  • {{ credit_card_form.errors.credit_card }}
{% endif %}
{{ credit_card_form.type.errors }}
{{ credit_card_form.type.label_tag }}: {{ credit_card_form.type }}
{{ credit_card_form.owner.errors }}
{{ credit_card_form.owner.label_tag }}: {{ credit_card_form.owner }}
{{ credit_card_form.number.errors }}
{{ credit_card_form.number.label_tag }}: {{ credit_card_form.number }}
{{ credit_card_form.expiration_date_month }} {{ credit_card_form.expiration_date_year }}
{{ credit_card_form.verification.errors }}
{{ credit_card_form.verification.label_tag }}: {{ credit_card_form.verification }}
{% endif %} {% if display_bank_account %}
{% trans 'Please enter your bank information' %}
{{ bank_account_form.account_number.errors }}
{{ bank_account_form.account_number.label_tag }}: {{ bank_account_form.account_number }}
{{ bank_account_form.bank_identification_code.errors }}
{{ bank_account_form.bank_identification_code.label_tag }}: {{ bank_account_form.bank_identification_code }}
{{ bank_account_form.bank_name.errors }}
{{ bank_account_form.bank_name.label_tag }}: {{ bank_account_form.bank_name }}
{{ bank_account_form.depositor.errors }}
{{ bank_account_form.depositor.label_tag }}: {{ bank_account_form.depositor }}
{% endif %} {# Cart #}
{{ cart_inline }}
{# Message #}
{% lfs_form checkout_form.message %}
{% if SHOP.confirm_toc %} {% if checkout_form.errors.confirm_toc %} {% endif %} {% endif %}
{% trans 'Go to cart' %}
{% if request.user.is_anonymous %} {% else %} {% endif %}
{% endblock %}