console/app/templates/administrator/payments.html

44 lines
1.5 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 %}
Total: {{ payments.total }}
<table class="table table-bordered">
<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 %}
{% 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 %}