Add simple header to account details page

This will likely grow over time
This commit is contained in:
Eli Ribble 2016-07-01 11:52:57 -06:00
parent 568b5f6759
commit d479ca3850
1 changed files with 6 additions and 0 deletions

View File

@ -1,7 +1,13 @@
{% extends 'layout.html' %} {% extends 'layout.html' %}
{% block main_content %} {% block main_content %}
<h1>{{ account.name }}</h1> <h1>{{ account.name }}</h1>
<table class="table">
<tr><td>Current balance</td><td>{{ account.balance }}</td></tr>
<tr><td>Last updated</td><td>{{ account.last_updated }}</td></tr>
<tr><td>Transactions</td><td></td></tr>
</table>
{% if records %} {% if records %}
<h2>Transactions</h2>
<table class="table"> <table class="table">
<tr><th>Name</th><th>Type</th><th>Amount</th><th>Posted</th><th></th></tr> <tr><th>Name</th><th>Type</th><th>Amount</th><th>Posted</th><th></th></tr>
{% for record in records %} {% for record in records %}