diff options
Diffstat (limited to 'templates/expenses')
-rw-r--r-- | templates/expenses/add.jinja | 3 | ||||
-rw-r--r-- | templates/expenses/show.jinja | 7 |
2 files changed, 4 insertions, 6 deletions
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() }} <script type="text/javascript" src="{{ "jqueryui/jquery-ui.js" | static_url }}"></script> - <script type="text/javascript" src="{{ "js/add.js" | static_url }}"></script> {% 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() }} - <script type="text/javascript" src="{{ "js/show.js" | static_url }}"></script> -{% endblock %} - {% block content %} {% for e in exps %} {% if exps | length > 1 %}<h2>{{e|date}}</h2>{% endif %} |