Add simple page for showing details about a single account

For now this just includes the transactions that we know about on the
account. It'll grow. Give it time
This commit is contained in:
Eli Ribble 2016-06-28 16:07:59 -06:00
parent 2cc0cfb2bb
commit ccdd03b04b
4 changed files with 46 additions and 1 deletions

25
templates/account.html Normal file
View file

@ -0,0 +1,25 @@
{% extends 'layout.html' %}
{% block main_content %}
<h1>{{ account.name }}</h1>
{% if records %}
<table class="table">
<tr><th>Name</th><th>Type</th><th>Amount</th><th>Posted</th><th></th></tr>
{% for record in records %}
<tr>
<td>{{ record.name }}</a></td>
<td>{{ record.type }}</td>
<td>{{ record.amount }}</td>
<td>{{ account.posted }}</td>
<td>
<form method="POST" action="/update/">
<input type="hidden" name="account_uuid" value="{{ account.uuid }}"></input>
<input type="submit" value="Update" class="btn btn-primary"></input>
</form>
</td>
</tr>
{% endfor %}
</table>
{% else %}
<p>This account does not have any transactions yet</p>
{% endif %}
{% endblock %}