diff options
Diffstat (limited to 'templates/chart.html.tera')
| -rw-r--r-- | templates/chart.html.tera | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/templates/chart.html.tera b/templates/chart.html.tera index 6ce1613..f2efa38 100644 --- a/templates/chart.html.tera +++ b/templates/chart.html.tera @@ -68,10 +68,19 @@ <div class="container"> <h1>Spending Chart <small class="text-muted">{{ account_name }}</small></h1> <div style="text-align:center; margin: auto; width:100%"> - <form method="post" action="/chart"><input type="month" id="start"> to <input type="month" id="end" value="today"> + <form method="get" action="/chart"><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> +<h5 style="text-align:center">{{ total_chart | round(method="common", precision=2)}} Euro of + total {{ total_sum | round(method="common", precision=2) }} Euro ( + {% if total_sum > 0 %} + {{ ((total_chart / total_sum) * 100) | round(method="common", precision=0) }} + {% else %} + 100 + {% endif %} + %) present in chart +</h5> <!-- stack coln charts to compare months --> <div id="donutchart" style="margin: auto; width: 100%; height: 500px;"></div> </div> |
