diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-07-23 00:28:47 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-07-23 00:28:47 +0200 |
commit | 81493afa53a1a1d5ff4b417d05febf9f9e2a172b (patch) | |
tree | 00de0a1bb7c386cff4203aa7b0789569e75347bb /kosten/templates/stats | |
parent | 6f6c8af2a55fabb69372e3fc4e8504167805d018 (diff) | |
download | kosten-81493afa53a1a1d5ff4b417d05febf9f9e2a172b.tar.gz kosten-81493afa53a1a1d5ff4b417d05febf9f9e2a172b.tar.bz2 kosten-81493afa53a1a1d5ff4b417d05febf9f9e2a172b.zip |
Restructure
Diffstat (limited to 'kosten/templates/stats')
-rw-r--r-- | kosten/templates/stats/const_dialog.jinja | 8 | ||||
-rw-r--r-- | kosten/templates/stats/show.jinja | 12 |
2 files changed, 20 insertions, 0 deletions
diff --git a/kosten/templates/stats/const_dialog.jinja b/kosten/templates/stats/const_dialog.jinja new file mode 100644 index 0000000..9f059b8 --- /dev/null +++ b/kosten/templates/stats/const_dialog.jinja @@ -0,0 +1,8 @@ + +<ul class="arrow"> + {% for c in consts -%} + <li><a href="{{ url_for("consts.show", id = c.id) }}">{{c.description}}</a> + ({{c.monthly | eur}}) + </li> + {% endfor %} +</ul> diff --git a/kosten/templates/stats/show.jinja b/kosten/templates/stats/show.jinja new file mode 100644 index 0000000..ac271ac --- /dev/null +++ b/kosten/templates/stats/show.jinja @@ -0,0 +1,12 @@ +{% extends "layout.jinja" %} + +{% set JSFunction = "statJS" %} +{% set additionalJS = ["highstock"] %} + +{% block heading %} + Statistiken +{% endblock %} + +{% block content %} + <div class="stats" data-consts='{{ consts | tojson }}' data-expenses='{{ expenses | tojson }}'></div> +{% endblock content %} |