{% extends "base.html" %}

{% load i18n plata_tags %}

{% block title %}{% trans "Checkout" %} - {{ block.super }}{% endblock %}

{% block content %}
<h1>{% trans "Checkout" %}</h1>

<form method="post" action=".">
{% csrf_token %}

{% form_errors contactform orderform %}

<table>
<tr><td colspan="2">
<h2>{% trans "Billing address" %}</h2>
</td></tr>

{% form_item contactform.billing_company %}
{% form_item contactform.billing_first_name %}
{% form_item contactform.billing_last_name %}
{% form_item contactform.email %}
{% form_item contactform.billing_address %}
{% form_item contactform.billing_zip_code %}
{% form_item contactform.billing_city %}
{% form_item contactform.billing_country %}

<tr><td colspan="2">
<h2>{% trans "Shipping address" %}</h2>
</td></tr>

<tr><td colspan="2">
        {% form_item_plain contactform.shipping_same_as_billing %}
        {{ contactform.shipping_same_as_billing.label_tag }}
</td></tr>

{% form_item contactform.shipping_company %}
{% form_item contactform.shipping_first_name %}
{% form_item contactform.shipping_last_name %}
{% form_item contactform.shipping_address %}
{% form_item contactform.shipping_zip_code %}
{% form_item contactform.shipping_city %}
{% form_item contactform.shipping_country %}

<tr><td colspan="2">
<h2>{% trans "Notes" %}</h2>
</td></tr>
{% form_item orderform.notes %}
<tr>
    <td></td>
    <td><button type="submit">{% trans "Submit" %}</button></td>
</tr>
</table>
</form>
{% endblock %}
