summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2013-09-14 00:27:31 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2013-09-14 00:27:31 +0200
commitf475f0095f2b4af1acab8cfe3d6c866a71b73bf1 (patch)
treef43d5ca41f17765c56bf00afb0a523ffef805b2f /templates
parent9b358a4a3e6ce5cad229ba2fa6da9218e88b61e0 (diff)
downloadkosten-f475f0095f2b4af1acab8cfe3d6c866a71b73bf1.tar.gz
kosten-f475f0095f2b4af1acab8cfe3d6c866a71b73bf1.tar.bz2
kosten-f475f0095f2b4af1acab8cfe3d6c866a71b73bf1.zip
Replaced current JS by LS and generated JS
Diffstat (limited to '')
-rw-r--r--templates/categories/manage.jinja5
-rw-r--r--templates/expenses/add.jinja3
-rw-r--r--templates/expenses/show.jinja7
-rw-r--r--templates/layout.jinja3
4 files changed, 7 insertions, 11 deletions
diff --git a/templates/categories/manage.jinja b/templates/categories/manage.jinja
index efa91b6..7125c53 100644
--- a/templates/categories/manage.jinja
+++ b/templates/categories/manage.jinja
@@ -2,10 +2,7 @@
{% block heading %} Kategorien {% endblock %}
-{% block js %}
- {{ super() }}
- <script type="text/javascript" src="{{ "js/cats.js" | static_url }}"></script>
-{% endblock %}
+{% set JSFunction = "catsJS" %}
{% block content %}
<form name="categories" method="post">
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 %}
diff --git a/templates/layout.jinja b/templates/layout.jinja
index 85df3a4..ee082f9 100644
--- a/templates/layout.jinja
+++ b/templates/layout.jinja
@@ -5,7 +5,8 @@
{% if not g.is_mobile %}
{% block js %}
<script type="text/javascript" src="{{ "js/jquery-1.10.2.js" | static_url }}"></script>
- <script type="text/javascript" src="{{ "js/lib.js" | static_url }}"></script>
+ <script type="text/javascript" src="{{ "js/kosten.js" | static_url }}"></script>
+ {% if JSFunction %}<script type="text/javascript">{{ JSFunction }}()</script> {% endif %}
{% endblock %}
{% endif %}
<link rel="shortcut icon" href="{{ "images/currency.png" | static_url }}" type="image/icon">