Added web ui with templates
This commit is contained in:
parent
d2cb5b3031
commit
90b02eef79
24 changed files with 1403 additions and 78 deletions
25
templates/accounts.html
Normal file
25
templates/accounts.html
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}Account {{account.account_name}}{% endblock title %}
|
||||
{% block body %}
|
||||
<div>{{account.account_name}}</div>
|
||||
<div>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Descripción</th>
|
||||
<th>Fecha</th>
|
||||
<th>Cantidad</th>
|
||||
<th>Categoría</th>
|
||||
</tr>
|
||||
{% for tx in transactions %}
|
||||
<tr>
|
||||
<td>{{tx.description}}</td>
|
||||
<td>{{tx.transaction_timestamp}}</td>
|
||||
<td>{{tx.amount/100}}</td>
|
||||
<td>{{tx.category}}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
<p>Cargados {{n_txs}} movimientos</p>
|
||||
</div>
|
||||
{% endblock body %}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue