proxadmin/app/templates/admin/list_transactions.html

57 lines
2.2 KiB
HTML
Raw Normal View History

2017-06-10 23:26:10 -04:00
{% extends "base.html" %}
{% block page_content %}
<div class="row">
{% include "admin/admin_tasks.html" %}
<div class="col-md-12">
2017-07-25 10:33:23 -04:00
<div class="panel panel-info">
2018-01-24 03:58:28 -05:00
<div class="panel-heading">All Transactions</div>
2017-06-10 23:26:10 -04:00
<div class="panel-body">
2018-01-30 22:08:33 -05:00
<div class="no-more-tables">
2017-06-10 23:26:10 -04:00
<table class="table table-hover table-striped table-condensed cf">
<thead>
<tr>
2018-01-24 03:58:28 -05:00
<th>ID</th>
2017-06-10 23:26:10 -04:00
<th>Description</th>
<th>Amount</th>
<th>Date</th>
2017-09-14 20:28:26 -04:00
<th>User</th>
2017-06-10 23:26:10 -04:00
</tr>
</thead>
<tbody>
{% for transaction in transactions %}
{% if transaction.value > 0 %}
<tr class="default">
2018-01-30 22:08:33 -05:00
<td data-title="ID">{{ transaction.pid }}</td>
<td data-title="Description">{{ transaction.description }}</td>
<td data-title="Amount">{{ transaction.value }} {{ transaction.currency }}</td>
<td data-title="Date">{{ moment(transaction.date_created).format('lll') }}</td>
<td data-title="User"><a href="{{ url_for('admin.transaction', user_pid=transaction.owner.pid) }}">{{ transaction.owner.email }}</a></td>
2017-06-10 23:26:10 -04:00
{% else %}
2017-09-14 20:28:26 -04:00
<tr class="default">
2018-01-30 22:08:33 -05:00
<td data-title="ID">{{ transaction.pid }}</td>
<td data-title="Description">{{ transaction.description }}</td>
<td data-title="Amount">{{ transaction.value }} {{ transaction.currency }}</td>
<td data-title="Date">{{ moment(transaction.date_created).format('lll') }}</td>
<td data-title="User"><a href="{{ url_for('admin.transaction', user_pid=transaction.owner.pid) }}">{{ transaction.owner.email }}</a></td>
2017-06-10 23:26:10 -04:00
{% endif %}
</tr>
</tbody>
{% endfor %}
</table>
2018-03-24 20:15:29 -04:00
{% if transactions.has_prev %}<a href="{{ url_for('view', page=transactions.prev_num) }}">&lt;&lt; Previous</a>{% else %}&lt;&lt; Previous{% endif %} |
{% if transactions.has_next %}<a href="{{ url_for('view', page=transactions.next_num) }}">Next &gt;&gt;</a>{% else %}Next &gt;&gt;{% endif %}
2017-06-10 23:26:10 -04:00
</div>
</div>
</div>
</div>
{% endblock %}