summaryrefslogtreecommitdiff
path: root/templates/expenses
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--templates/expenses/search.jinja25
1 files changed, 25 insertions, 0 deletions
diff --git a/templates/expenses/search.jinja b/templates/expenses/search.jinja
new file mode 100644
index 0000000..5cd294b
--- /dev/null
+++ b/templates/expenses/search.jinja
@@ -0,0 +1,25 @@
+{% extends "layout.jinja" %}
+
+{% block heading %}
+ Suchergebnisse
+{% endblock %}
+
+{% block content %}
+
+ {% set year = None %}
+
+ {% for exp in exps %}
+ {% if exp.year != year %}
+ {% if year != None %}</ul>{% endif %}
+ {% set year = exp.year %}
+ <h2>{{ year }}</h2>
+ <ul>
+ {% endif %}
+
+ <li>
+ <a href="{{ url_for(".edit", id = exp.id) }}">{{exp.day}}.{{exp.month}}. -- {{exp.description}}: {{exp.expense | eur }}</a>
+ </li>
+
+ {% endfor %}
+
+{% endblock %}