<html>
{% load i18n %}
<head>
<title>{% block title %}Plata{% endblock %}</title>
<style type="text/css">
body {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 13px;
}

#navigation {
    background: #444;
    font-size: 16px;
    padding: 0px 10px;
    margin: 0 0 10px 0;
}

#navigation a {
    color: #fff;
    float: left;
}

#navigation a span {
    display: block;
    padding: 5px 10px;
}

ul.messages {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.messages li {
    background: #ffc;
    border: 1px solid #cfcfcf;
    padding: 5px 8px 6px 8px;
    font-size: 12px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
}

div.pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

div.pagination ul li {
    float: left;
}

div.pagination ul li a {
    display: block;
    padding: 2px 3px;
}
</style>
</head>
<body>

<div id="navigation">
<a href="/"><span>{% trans "Home" %}</span></a>
<a href="/products/"><span>{% trans "Products" %}</span></a>
<a href="/cart/"><span>{% trans "Cart" %}</span></a>
<br style="clear:left" />
</div>


{% if messages %}
<ul class="messages">
    {% for message in messages %}
    <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
    {% endfor %}
</ul>
{% endif %}

{% block content %}
{% endblock %}

<hr />
<a href="{% url plata_shop_cart %}">{% trans "Go to cart" %}</a>
<hr />
<h2>{% trans "That's what we know about you:" %}</h2>
<table>
    <tr>
        <th>{% trans "User" %}</th>
        <td>{{ user }}</td>
    </tr>
    <tr>
        <th>{% trans "Contact" %}</th>
        <td>{{ plata.contact }}</td>
    </tr>
    <tr>
        <th>{% trans "Order" %}</th>
        <td>
            {{ plata.order }}, {{ plata.order.currency }} {{ plata.order.total|floatformat:2 }}
            <ul>
                {% for item in plata.order.items.all %}
                <li><a href="{{ item.variation.get_absolute_url }}">{{ item }}</a></li>
                {% endfor %}
            </ul>
            {% if plata.order.id %}
            <a href="{% url plata_admin_pdf plata.order.id %}">PDF</a>
            {% endif %}
        </td>
    </tr>
</table>

</body>
</html>
