From f475f0095f2b4af1acab8cfe3d6c866a71b73bf1 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Sat, 14 Sep 2013 00:27:31 +0200 Subject: Replaced current JS by LS and generated JS --- templates/expenses/add.jinja | 3 ++- templates/expenses/show.jinja | 7 ++----- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'templates/expenses') diff --git a/templates/expenses/add.jinja b/templates/expenses/add.jinja index 388341a..d63f844 100644 --- a/templates/expenses/add.jinja +++ b/templates/expenses/add.jinja @@ -5,10 +5,11 @@ Neue Ausgabe hinzufügen {% endblock %} +{% set JSFunction = "addJS" %} + {% block js %} {{ super() }} - {% endblock %} {% block style %} diff --git a/templates/expenses/show.jinja b/templates/expenses/show.jinja index a3b9422..8052757 100644 --- a/templates/expenses/show.jinja +++ b/templates/expenses/show.jinja @@ -1,6 +1,8 @@ {% extends "layout.jinja" %} {% from "macros.jinja" import left_arrow, right_arrow, colorize %} +{% set JSFunction = "showJS" %} + {% block heading %} {% if exps | length > 1 %} Aktuelle Kosten @@ -9,11 +11,6 @@ {% endif %} {% endblock %} -{% block js %} - {{ super() }} - -{% endblock %} - {% block content %} {% for e in exps %} {% if exps | length > 1 %}

{{e|date}}

{% endif %} -- cgit v1.2.3-54-g00ecf