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:
parent
2cc0cfb2bb
commit
ccdd03b04b
4 changed files with 46 additions and 1 deletions
25
templates/account.html
Normal file
25
templates/account.html
Normal 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 %}
|
|
@ -6,7 +6,7 @@
|
|||
<tr><th>Name</th><th>Type</th><th>Institution</th><th>Last Update</th><th></th></tr>
|
||||
{% for account in accounts %}
|
||||
<tr>
|
||||
<td>{{ account.name }}</td>
|
||||
<td><a href="/accounts/{{ account.uuid }}/">{{ account.name }}</a></td>
|
||||
<td>{{ account.type }}</td>
|
||||
<td>{{ account.source.name }}</td>
|
||||
<td>{{ account.last_updated }}</td>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue