diff --git a/hosting/templates/hosting/order_detail.html b/hosting/templates/hosting/order_detail.html index 56154d29..38b186db 100644 --- a/hosting/templates/hosting/order_detail.html +++ b/hosting/templates/hosting/order_detail.html @@ -23,81 +23,88 @@ -
-

- {% trans "Order #"%} {{order.id}} -

-
-
-
-
- {% trans "Date"%}:
- - {% if order %} - {{order.created_at|date:'Y-m-d H:i'}} - {% else %} - {% now "Y-m-d H:i" %} - {% endif %} -

+
+ {% if order %} +
+ {% trans "Order #"%} {{order.id}} +
+ {% endif %} +
+ {% trans "Invoice Date"%}: + {% if order %} - {% trans "Status:"%}
+ {{order.created_at|date:'Y-m-d H:i'}} + {% else %} + {% now "Y-m-d H:i" %} + {% endif %} +
+
+ {% if order %} + + {% endif %} +
+ {% trans "Status" %}: + {% if order.status == 'Approved' %} - - {% trans "Approved" %} - + {% trans "Approved" %} {% else %} - - {% trans "Declined" %} - + {% trans "Declined" %} {% endif %} -

- {% endif %} -
- +
-
+
+
-

{% trans "Billed To:"%}

- {% if order %} - {{user.name}}
- {{order.billing_address.street_address}},{{order.billing_address.postal_code}}
- {{order.billing_address.city}}, - {{order.billing_address.country}}. - {% else %} - {% with request.session.billing_address_data as billing_address %} - {{billing_address.cardholder_name}}
- {{billing_address.street_address}}, - {{billing_address.postal_code}}
- {{billing_address.city}}, - {{billing_address.country}}. - {% endwith %} - {% endif %} +

{% trans "Billed to" %}:

+
+ {% if order %} + {{user.name}}
+ {{order.billing_address.street_address}},{{order.billing_address.postal_code}}
+ {{order.billing_address.city}}, + {{order.billing_address.country}}. + {% else %} + {% with request.session.billing_address_data as billing_address %} + {{billing_address.cardholder_name}}
+ {{billing_address.street_address}}, + {{billing_address.postal_code}}
+ {{billing_address.city}}, + {{billing_address.country}}. + {% endwith %} + {% endif %} +
+
+
+

{% trans "Payment method" %}:

+
+ {% if order %} + {{order.cc_brand}} {% trans "ending in" %} **** + {{order.last4}}
+ {{user.email}} + {% else %} + {{cc_brand}} {% trans "ending in" %} **** + {{cc_last4}}
+ {{request.session.user.email}} + {% endif %} +
+
+
+

{% trans "Order summary"%}

+
+ {% if request.session.specs %} + {% request.session.specs as vm %} + {% endif %} + {% trans "Product" %}: {{request.session.template.name}} +
+
-
-
-
- {% trans "Payment Method:"%}
- {% if order %} - {{order.cc_brand}} {% trans "ending in" %} **** - {{order.last4}}
- {{user.email}} - {% else %} - {{cc_brand}} {% trans "ending in" %} **** - {{cc_last4}}
- {{request.session.user.email}} - {% endif %} -
-
-
-

{% trans "Order summary"%}

+


- {% if request.session.specs %} - {% with request.session.specs as vm %} +

{% trans "Cores"%} {{vm.cpu}}

@@ -195,7 +202,7 @@