console/SWSCloudAdministrator/templates/administrator/payments.html
2016-06-12 02:54:23 +03:00

47 lines
No EOL
1.6 KiB
HTML

{% extends 'administrator/_layout.auth.html' %}
{% block title %}Payments{% endblock %}
{% block subtitle %}Payments list{% endblock %}
{% block content %}
<p>Total: {{ payments.total }}</p>
<table class="table table-bordered" width="100%">
<thead>
<tr>
<th>ID</th>
<th>Email</th>
<th>Amount</th>
<th>Status</th>
<th>Notified</th>
<th>Created</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
{% if payments.total == 0 %}
<tr>
<td colspan="6">No payments.</td>
</tr>
{% else %}
{% for payment in payments['items'] %}
<tr>
<td>{{ payment.id }}</td>
<td>{{ payment.user.email }}</td>
<td>{{ payment.amount }}</td>
<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>
<td>{{ payment.notified }}</td>
<td>{{ payment.created }}</td>
<td><a href="">edit</a></td>
</tr>
{% endfor %}
{% endif %}
</tbody>
</table>
{% endblock %}