Skip to content

Commit

Permalink
Add trasactions.html page
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaLeprechaun committed Sep 8, 2019
1 parent b51222a commit 30025ea
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions templates/transactions.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{% extends "layout.html" %}

{% block title %}
Transaction History
{% endblock %}
{% block main %}
<table class="table table-striped table-style">
<thead>
<tr>
<th>S/N</th>
<th>Deposit</th>
<th>Withdrawal</th>
<th>Balance</th>
<th>Transaction Date</th>
</tr>
</thead>

<tbody>
{% for transaction in transactions %}
<tr>
<td>{{ transaction.id }}</td>
<td>{{ transaction.deposit }}</td>
<td>{{ transaction.withdrawal }}</td>
<td>{{ transaction.current_balance }}</td>
<td>{{ transaction.time }}</td>
</tr>
{% endfor %}

</tbody>
</table>
{% endblock %}

0 comments on commit 30025ea

Please sign in to comment.