From 60506f68f0577ce5ef63cad6c481f1088a9abaab Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Tue, 22 Mar 2016 12:15:43 +0100 Subject: [PATCH] Use columns on order detail page --- .../templates/pretixcontrol/order/index.html | 100 ++++++++++-------- 1 file changed, 53 insertions(+), 47 deletions(-) diff --git a/src/pretix/control/templates/pretixcontrol/order/index.html b/src/pretix/control/templates/pretixcontrol/order/index.html index 3e47084d9..1780d513c 100644 --- a/src/pretix/control/templates/pretixcontrol/order/index.html +++ b/src/pretix/control/templates/pretixcontrol/order/index.html @@ -85,7 +85,7 @@ {% if i.is_cancellation %}{% trans "Cancellation" %}{% else %}{% trans "Invoice" %}{% endif %} {{ i.number }} ({{ i.date|date:"SHORT_DATE_FORMAT" }}) {% if forloop.revcounter0 > 0 %} -
+
{% endif %} {% endfor %} @@ -93,7 +93,7 @@ -
+

{% trans "Ordered items" %} @@ -174,53 +174,59 @@

-
-
-

- {% trans "Payment information" %} -

-
-
- {% if order.payment_manual %} -
- {% trans "The payment state of this order was manually modified." %} +
+
+
+
+

+ {% trans "Payment information" %} +

- {% endif %} - {{ payment }} - {% if order.status == 'n' %} -

{% blocktrans trimmed with date=order.expires %} - The payment has to be completed before {{ date }}. - {% endblocktrans %}

- {% endif %} -
-
- {% if request.event.settings.invoice_address_asked %} -
-
-

- {% trans "Invoice information" %} -

-
-
-
-
{% trans "Company" %}
-
{{ order.invoice_address.company }}
-
{% trans "Name" %}
-
{{ order.invoice_address.name }}
-
{% trans "Address" %}
-
{{ order.invoice_address.street|linebreaksbr }}
-
{% trans "ZIP code and city" %}
-
{{ order.invoice_address.zipcode }} {{ addr.city }}
-
{% trans "Country" %}
-
{{ order.invoice_address.country }}
-
{% trans "Phone" %}
-
{{ order.invoice_address.phone }}
- {% if request.event.settings.invoice_address_vatid %} -
{% trans "VAT ID" %}
-
{{ order.invoice_address.vat_id }}
+
+ {% if order.payment_manual %} +
+ {% trans "The payment state of this order was manually modified." %} +
{% endif %} -
+ {{ payment }} + {% if order.status == 'n' %} +

{% blocktrans trimmed with date=order.expires %} + The payment has to be completed before {{ date }}. + {% endblocktrans %}

+ {% endif %} +
- {% endif %} + {% if request.event.settings.invoice_address_asked %} +
+
+
+

+ {% trans "Invoice information" %} +

+
+
+
+
{% trans "Company" %}
+
{{ order.invoice_address.company }}
+
{% trans "Name" %}
+
{{ order.invoice_address.name }}
+
{% trans "Address" %}
+
{{ order.invoice_address.street|linebreaksbr }}
+
{% trans "ZIP code and city" %}
+
{{ order.invoice_address.zipcode }} {{ addr.city }}
+
{% trans "Country" %}
+
{{ order.invoice_address.country }}
+
{% trans "Phone" %}
+
{{ order.invoice_address.phone }}
+ {% if request.event.settings.invoice_address_vatid %} +
{% trans "VAT ID" %}
+
{{ order.invoice_address.vat_id }}
+ {% endif %} +
+
+
+
+ {% endif %} +
{% endblock %}