summaryrefslogtreecommitdiff
path: root/templates/chart.html.tera
diff options
context:
space:
mode:
authorBenedict Börger <benedict@0xb8000.de>2019-04-14 19:12:21 +0200
committerBenedict Börger <benedict@0xb8000.de>2019-04-14 19:12:21 +0200
commitf28e8a59c781f24ed9399268cc2536aad0cf534d (patch)
tree5678dd6c12b5849ab15f9d63a49c9424d222390b /templates/chart.html.tera
parent7e8656cb6d086f364baeeb79a69a04555a6fd4f6 (diff)
[global] update all files
Diffstat (limited to 'templates/chart.html.tera')
-rw-r--r--templates/chart.html.tera11
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>