2016-04-29 06:53:24 +00:00
|
|
|
{% extends "hosting/base_short.html" %}
|
|
|
|
{% load staticfiles bootstrap3 %}
|
2017-09-25 19:48:39 +00:00
|
|
|
{% load i18n l10n %}
|
2016-07-19 02:24:44 +00:00
|
|
|
|
2016-05-18 22:58:28 +00:00
|
|
|
{% block content %}
|
2017-08-20 16:10:17 +00:00
|
|
|
<div class="dashboard-container">
|
|
|
|
<div class="dashboard-container-head">
|
2017-09-01 21:39:02 +00:00
|
|
|
<h3 class="dashboard-title-thin"><img src="{% static 'hosting/img/shopping-cart.svg' %}" class="un-icon" style="margin-top: -4px; width: 30px;"> {% trans "My Bills" %}</h3>
|
2017-08-20 16:10:17 +00:00
|
|
|
{% if messages %}
|
|
|
|
<div class="alert alert-warning">
|
|
|
|
{% for message in messages %}
|
|
|
|
<span>{{ message }}</span>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
<div class="dashboard-subtitle"></div>
|
|
|
|
</div>
|
2016-05-03 05:59:40 +00:00
|
|
|
|
2017-08-20 16:10:17 +00:00
|
|
|
<table class="table table-switch">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>{% trans "Order Nr." %}</th>
|
|
|
|
<th>{% trans "Date" %}</th>
|
|
|
|
<th>{% trans "Amount" %}</th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for order in orders %}
|
2017-08-23 17:37:40 +00:00
|
|
|
<tr>
|
|
|
|
<td class="xs-td-inline" data-header="{% trans 'Order Nr.' %}">{{ order.id }}</td>
|
2017-09-25 19:48:39 +00:00
|
|
|
<td class="xs-td-bighalf" data-header="{% trans 'Date' %}">{{ order.created_at | date:"M d, Y H:i" }}</td>
|
|
|
|
<td class="xs-td-smallhalf" data-header="{% trans 'Amount' %}">{{ order.price|unlocalize }}</td>
|
2017-09-27 19:29:49 +00:00
|
|
|
<td class="text-right last-td">
|
2017-08-31 10:29:22 +00:00
|
|
|
<a class="btn btn-order-detail" href="{% url 'hosting:orders' order.pk %}">{% trans 'See Invoice' %}</a>
|
2017-08-23 17:37:40 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2017-08-20 16:10:17 +00:00
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2016-04-29 06:53:24 +00:00
|
|
|
|
2017-08-20 16:10:17 +00:00
|
|
|
{% if is_paginated %}
|
|
|
|
<div class="pagination">
|
|
|
|
<span class="page-links">
|
|
|
|
{% if page_obj.has_previous %}
|
|
|
|
<a href="{{request.path}}?page={{ page_obj.previous_page_number }}">{% trans "previous" %}</a>
|
|
|
|
{% endif %}
|
|
|
|
<span class="page-current">
|
|
|
|
{% trans "Page" %} {{ page_obj.number }} {% trans "of" %} {{ page_obj.paginator.num_pages }}.
|
|
|
|
</span>
|
|
|
|
{% if page_obj.has_next %}
|
|
|
|
<a href="{{request.path}}?page={{ page_obj.next_page_number }}">{% trans "next" %}</a>
|
|
|
|
{% endif %}
|
|
|
|
</span>
|
2016-05-18 22:58:28 +00:00
|
|
|
</div>
|
2017-08-20 16:10:17 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
2017-05-13 15:02:45 +00:00
|
|
|
{% endblock %}
|