2016-04-27 06:54:15 +00:00
|
|
|
{% extends "hosting/base_short.html" %}
|
|
|
|
{% load staticfiles bootstrap3 %}
|
2016-07-19 02:24:44 +00:00
|
|
|
{% load i18n %}
|
2016-04-27 06:54:15 +00:00
|
|
|
{% block content %}
|
|
|
|
|
2017-06-01 16:24:50 +00:00
|
|
|
<div class="order-detail-container">
|
2017-06-15 02:00:47 +00:00
|
|
|
{% if messages %}
|
2016-04-27 06:54:15 +00:00
|
|
|
<div class="row">
|
2017-06-15 02:00:47 +00:00
|
|
|
<div class="col-xs-12 col-md-8 col-md-offset-2">
|
|
|
|
<br/>
|
|
|
|
<div class="alert alert-warning">
|
|
|
|
{% for message in messages %}
|
|
|
|
<span>{{ message }}</span>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% if not error %}
|
|
|
|
<div class="row">
|
2017-06-01 16:24:50 +00:00
|
|
|
<div class="col-xs-12 col-md-8 col-md-offset-2">
|
2016-04-27 06:54:15 +00:00
|
|
|
<div class="invoice-title">
|
2017-06-22 21:03:59 +00:00
|
|
|
<h2>{% trans "Confirm Order"%}</h2><h3 class="pull-right">{% trans "Order #"%} {{order.id}}</h3>
|
2016-04-27 06:54:15 +00:00
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-6">
|
|
|
|
<address>
|
2016-07-19 02:24:44 +00:00
|
|
|
<h3><b>{% trans "Billed To:"%}</b></h3>
|
2016-05-03 05:59:40 +00:00
|
|
|
{{user.name}}<br>
|
2016-05-14 06:42:42 +00:00
|
|
|
{{order.billing_address.street_address}},{{order.billing_address.postal_code}}<br>
|
|
|
|
{{order.billing_address.city}}, {{order.billing_address.country}}.
|
2016-04-27 06:54:15 +00:00
|
|
|
</address>
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-6 text-right">
|
|
|
|
<address>
|
2017-06-29 19:24:04 +00:00
|
|
|
<strong>{% trans "Date"%}</strong><br>
|
2017-06-21 18:32:23 +00:00
|
|
|
<span id="order-created_at">{{order.created_at|date:'Y-m-d H:i'}}</span><br><br>
|
2016-07-19 02:24:44 +00:00
|
|
|
<strong>{% trans "Status:"%}</strong><br>
|
2016-05-14 06:42:42 +00:00
|
|
|
<strong class="{% if order.status == 'Approved' %}text-success
|
2016-05-05 06:03:35 +00:00
|
|
|
{%else%} text-danger
|
2016-05-14 06:42:42 +00:00
|
|
|
{% endif %}">{{order.status}}</strong>
|
2016-05-05 06:03:35 +00:00
|
|
|
<br><br>
|
2016-04-27 06:54:15 +00:00
|
|
|
</address>
|
2016-05-03 05:59:40 +00:00
|
|
|
|
2016-04-27 06:54:15 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-6">
|
|
|
|
<address>
|
2016-07-19 02:24:44 +00:00
|
|
|
<strong>{% trans "Payment Method:"%}</strong><br>
|
2016-05-14 06:42:42 +00:00
|
|
|
{{order.cc_brand}} ending **** {{order.last4}}<br>
|
2016-04-27 06:54:15 +00:00
|
|
|
{{user.email}}
|
|
|
|
</address>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-8 col-md-offset-2">
|
2016-07-19 02:24:44 +00:00
|
|
|
<h3><b>{% trans "Order summary"%}</b></h3>
|
2016-04-27 06:54:15 +00:00
|
|
|
<hr>
|
|
|
|
<div class="content">
|
2017-05-12 10:07:05 +00:00
|
|
|
<p><b>{% trans "Cores"%}</b> <span class="pull-right">{{vm.cores}}</span></p>
|
2016-04-27 06:54:15 +00:00
|
|
|
<hr>
|
2017-06-15 06:48:38 +00:00
|
|
|
<p><b>{% trans "Memory"%}</b> <span class="pull-right">{{vm.memory}} GB</span></p>
|
2016-06-07 05:29:22 +00:00
|
|
|
<hr>
|
2017-06-15 06:48:38 +00:00
|
|
|
<p><b>{% trans "Disk space"%}</b> <span class="pull-right">{{vm.disk_size}} GB</span></p>
|
2016-04-27 06:54:15 +00:00
|
|
|
<hr>
|
2017-06-21 18:28:48 +00:00
|
|
|
<h4>{% trans "Total"%}<p class="pull-right"><b>{{vm.price}} CHF</b></p></h4>
|
2016-04-27 06:54:15 +00:00
|
|
|
</div>
|
2016-05-24 06:19:49 +00:00
|
|
|
<br/>
|
|
|
|
{% url 'hosting:payment' as payment_url %}
|
|
|
|
{% if payment_url in request.META.HTTP_REFERER %}
|
|
|
|
<div class=" content pull-right">
|
2017-05-25 10:39:23 +00:00
|
|
|
<a href="{% url 'hosting:virtual_machines'%}" ><button class="btn btn-info">{% trans "Finish Configuration"%}</button></a>
|
2016-05-24 06:19:49 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2016-04-27 06:54:15 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-06-15 02:00:47 +00:00
|
|
|
{% endif %}
|
2016-04-27 06:54:15 +00:00
|
|
|
</div>
|
2017-06-21 18:24:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
window.onload = function () {
|
2017-06-23 05:30:31 +00:00
|
|
|
var locale_date = moment.utc(document.getElementById("order-created_at").textContent,'YYYY-MM-DD HH:mm').toDate();
|
2017-06-21 18:24:38 +00:00
|
|
|
locale_date = moment(locale_date).format("YYYY-MM-DD h:mm:ss a");
|
|
|
|
document.getElementById('order-created_at').innerHTML = locale_date;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
</script>
|
2016-04-27 06:54:15 +00:00
|
|
|
{%endblock%}
|
2017-06-21 18:24:38 +00:00
|
|
|
|