From 43459025bcac72318e4ef8a32c2d4455321bc191 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Sat, 14 Sep 2013 23:05:07 +0200 Subject: Draw pies using highcharts JS-lib --- templates/expenses/show.jinja | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'templates/expenses/show.jinja') diff --git a/templates/expenses/show.jinja b/templates/expenses/show.jinja index 4b6e362..395d1e5 100644 --- a/templates/expenses/show.jinja +++ b/templates/expenses/show.jinja @@ -3,6 +3,11 @@ {% set JSFunction = "showJS" %} +{% block js %} + {{ super() }} + +{% endblock %} + {% block heading %} {% if exps | length > 1 %} Aktuelle Kosten @@ -14,8 +19,8 @@ {% block content %} {% for e, p in zip(exps,pies) %} {% if exps | length > 1 %}

{{e|date}}

{% endif %} -
-
+
+
{% for c in e.catexps | sort(attribute="cat.name") %} {% call(exp) detail(name=c.cat.name, sum=c.expense, set=c.all) %} {{exp.day}}.{{exp.month}}. -- {{exp.description}}: {{exp.expense | eur }} @@ -30,8 +35,7 @@ {{exp.day}}.{{exp.month}}. -- {{exp.description}}: {{exp.expense | eur}} {% endcall %}
-
-
+
{% endfor %} -- cgit v1.2.3-70-g09d2