diff options
| author | Benedict Börger <benedict@0xb8000.de> | 2019-06-24 21:51:16 +0200 |
|---|---|---|
| committer | Benedict Börger <benedict@0xb8000.de> | 2019-06-24 21:51:16 +0200 |
| commit | beb2497cfde2806a37f0aefab75a16b3ce8eee0b (patch) | |
| tree | 91cf63100a93bc75f877a6ab2e56ad2415354d5d /templates/balance.html.tera | |
| parent | 18dd51842832ac21d81b398cc512e9c6ef245039 (diff) | |
[web_fronted][balance] update balance after refactoring
The code has been refactored to read the transaction from a global asset file.
Update the code in balacne to use this file.
Diffstat (limited to 'templates/balance.html.tera')
| -rw-r--r-- | templates/balance.html.tera | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/templates/balance.html.tera b/templates/balance.html.tera index 8f9ebec..332c8c1 100644 --- a/templates/balance.html.tera +++ b/templates/balance.html.tera @@ -22,9 +22,9 @@ {{ account_name }} </a> <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink"> - <a class="dropdown-item" href="/transactions">All Transactions</a> - <a class="dropdown-item" href="/chart">Spending chart</a> - <a class="dropdown-item" href="/balance">Balance</a> + <a class="dropdown-item" href="/transactions/{{ account_name }}">All Transactions</a> + <a class="dropdown-item" href="/chart/{{ account_name }}">Spending chart</a> + <a class="dropdown-item" href="/balance/{{account_name }}">Balance</a> </div> </li> <li class="nav-item dropdown active"> @@ -33,7 +33,6 @@ </a> <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink"> <a class="dropdown-item" href="/asset">Overview</a> - <a class="dropdown-item" href="/chart">Girokonto</a> </div> </li> <li class="nav-item"> @@ -46,7 +45,7 @@ <div class="container"> <h1>Balance <small class="text-muted">{{ account_name }}</small></h1> <div style="text-align:center; margin: auto; width:100%; padding: 10px;"> - <form method="get" action="/balance"><input type="month" id="start" name="start" value="{{ date_start }}"> to <input type="month" id="end" name="end"value="{{ date_end }}"> + <form method="get" action="/balance/{{ account_name }}"><input type="month" id="start" name="start" value="{{ date_start }}"> to <input type="month" id="end" name="end"value="{{ date_end }}"> <input type="submit" value="Show" class="btn btn-light"> </form> </div> |
