console/SWSCloudCore/templates/administrator/payments.html

47 lines
1.6 KiB
HTML
Raw Normal View History

2015-12-01 02:45:57 +03:00
{% extends 'administrator/_layout.auth.html' %}
{% block title %}Payments{% endblock %}
{% block subtitle %}Payments list{% endblock %}
{% block content %}
2016-05-11 02:26:04 +03:00
<p>Total: {{ payments.total }}</p>
<table class="table table-bordered" width="100%">
2015-12-01 02:45:57 +03:00
<thead>
<tr>
2016-05-11 02:26:04 +03:00
<th>ID</th>
<th>Email</th>
<th>Amount</th>
<th>Status</th>
<th>Notified</th>
<th>Created</th>
2015-12-01 02:45:57 +03:00
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
{% if payments.total == 0 %}
2016-05-11 02:26:04 +03:00
<tr>
<td colspan="6">No payments.</td>
</tr>
2015-12-01 02:45:57 +03:00
{% else %}
{% for payment in payments['items'] %}
<tr>
<td>{{ payment.id }}</td>
<td>{{ payment.user.email }}</td>
<td>{{ payment.amount }}</td>
2015-12-14 01:49:38 +03:00
<td>
{% if payment.status == 'process' %}
<span class="label label-info">{{ payment.status }}</span>
{% elif payment.status == 'success' %}
<span class="label laber-success">{{ payment.status }}</span>
{% endif %}
</td>
2015-12-01 02:45:57 +03:00
<td>{{ payment.notified }}</td>
<td>{{ payment.created }}</td>
<td><a href="">edit</a></td>
</tr>
{% endfor %}
{% endif %}
</tbody>
</table>
{% endblock %}