diff --git a/hosting/templates/hosting/order_detail.html b/hosting/templates/hosting/order_detail.html index 05a4e08a..795bc214 100644 --- a/hosting/templates/hosting/order_detail.html +++ b/hosting/templates/hosting/order_detail.html @@ -6,35 +6,35 @@ {% block content %}
- {% if messages %} + {% if messages %}

-
- {% for message in messages %} - {{ message }} - {% endfor %} -
+
+ {% for message in messages %} + {{ message }} + {% endfor %} +
{% endif %} {% if not error %}
-
-

{{page_header_text}}

+
+

{{page_header_text}}

- {% if order %} + {% if order %} {% trans "Order #"%} {{order.id}} - {% endif %} + {% endif %}

-
-
-
-
+
+
+
+
{% trans "Date"%}:
- + {% if order %} {{order.created_at|date:'Y-m-d H:i'}} {% else %} @@ -43,48 +43,59 @@

{% if order %} {% trans "Status:"%}
- {% if order.status == 'Approved' %} - {% trans "Approved" %} - {% else %} - {% trans "Declined" %} - {% endif %} + {% if order.status == 'Approved' %} + + {% trans "Approved" %} + + {% else %} + + {% trans "Declined" %} + + {% endif %}

{% endif %}
-
-
-

{% trans "Billed To:"%}

+
+
+

{% trans "Billed To:"%}

{% if order %} - {{user.name}}
+ {{user.name}}
{{order.billing_address.street_address}},{{order.billing_address.postal_code}}
- {{order.billing_address.city}}, {{order.billing_address.country}}. + {{order.billing_address.city}}, + {{order.billing_address.country}}. {% else %} - {% with request.session.billing_address_data as billing_address %} - {{billing_address|get_value_from_dict:'cardholder_name'}}
{{billing_address|get_value_from_dict:'street_address'}}, {{billing_address|get_value_from_dict:'postal_code'}}
- {{billing_address|get_value_from_dict:'city'}}, {{billing_address|get_value_from_dict:'country'}}. - {% endwith %} + {% with request.session.billing_address_data as + billing_address %} + {{billing_address|get_value_from_dict:'cardholder_name'}}
+ {{billing_address|get_value_from_dict:'street_address'}}, + {{billing_address|get_value_from_dict:'postal_code'}}
+ {{billing_address|get_value_from_dict:'city'}}, + {{billing_address|get_value_from_dict:'country'}}. + {% endwith %} {% endif %} -
-
+
+
-
-
-
-
- {% trans "Payment Method:"%}
+
+
+
+
+ {% trans "Payment Method:"%}
{% if order %} - {{order.cc_brand}} {% trans "ending in" %} **** {{order.last4}}
- {{user.email}} + {{order.cc_brand}} {% trans "ending in" %} **** + {{order.last4}}
+ {{user.email}} {% else %} - {{cc_brand}} {% trans "ending in" %} **** {{cc_last4}}
- {{request.session.user.email}} + {{cc_brand}} {% trans "ending in" %} **** + {{cc_last4}}
+ {{request.session.user.email}} {% endif %} -
-
-
-
+ +
+
+
@@ -93,25 +104,48 @@
{% if request.session.specs %} - {% with request.session.specs as vm %} -

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

-
-

{% trans "Memory"%} {{vm.memory}} GB

-
-

{% trans "Disk space"%} {{vm.disk_size}} GB

-
-

{% trans "Configuration"%} {{request.session.template.name}}

-
-

{% trans "Total"%}

{{vm.price}} CHF /{% trans "Month" %}

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

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

+
+

{% trans "Memory"%} + {{vm.memory}} GB +

+
+

{% trans "Disk space"%} + {{vm.disk_size}} GB +

+
+

{% trans "Configuration"%} + {{request.session.template.name}} +

+
+

{% trans "Total"%} +

+ {{vm.price}}CHF + /{% trans "Month" %} + +

+

+ {% endwith %} {% else %} -

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

-
-

{% trans "Memory"%} {{vm.memory}} GB

-
-

{% trans "Disk space"%} {{vm.disk_size}} GB

-
-

{% trans "Total"%}

{{vm.price}} CHF /{% trans "Month" %}

+

{% trans "Cores"%} + {{vm.cores}} +

+
+

{% trans "Memory"%} + {{vm.memory}} GB +

+
+

{% trans "Disk space"%} + {{vm.disk_size}} GB +

+
+

{% trans "Total"%}

{{vm.price}} + CHF /{% trans "Month" %} +

{% endif %}

@@ -127,18 +161,12 @@ id="btn-create-vm" data-href="{% url 'hosting:order-confirmation' %}" data-toggle="modal" - data-target="#createvm-modal">{% trans "Place order"%} + data-target="#createvm-modal"> + {% trans "Place order"%}
- {% else %} - {% url 'hosting:payment' as payment_url %} - {% if payment_url in request.META.HTTP_REFERER %} -
- -
- {% endif %} {% endif %} @@ -151,13 +179,18 @@