proxadmin/app/templates/admin/list_transactions.html

56 lines
1.7 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">
<div class="table-responsive">
<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-24 03:58:28 -05:00
<td>{{ transaction.pid }}</td>
2017-06-10 23:26:10 -04:00
<td>{{ transaction.description }}</td>
<td>{{ transaction.value }} {{ transaction.currency }}</td>
2017-06-11 22:12:27 -04:00
<td>{{ moment(transaction.date_created).format('lll') }}</td>
2017-06-10 23:26:10 -04:00
<td><a href="{{ url_for('admin.transaction', user_pid=transaction.owner.pid) }}">{{ transaction.owner.email }}</a></td>
{% else %}
2017-09-14 20:28:26 -04:00
<tr class="default">
2018-01-24 03:58:28 -05:00
<td>{{ transaction.pid }}</td>
2017-06-10 23:26:10 -04:00
<td>{{ transaction.description }}</td>
<td>{{ transaction.value }} {{ transaction.currency }}</td>
2017-06-11 22:12:27 -04:00
<td>{{ moment(transaction.date_created).format('lll') }}</td>
2017-06-10 23:26:10 -04:00
<td><a href="{{ url_for('admin.transaction', user_pid=transaction.owner.pid) }}">{{ transaction.owner.email }}</a></td>
{% endif %}
</tr>
</tbody>
{% endfor %}
</table>
</div>
</div>
</div>
</div>
{% endblock %}