diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-07-23 00:28:47 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-07-23 00:28:47 +0200 |
commit | 81493afa53a1a1d5ff4b417d05febf9f9e2a172b (patch) | |
tree | 00de0a1bb7c386cff4203aa7b0789569e75347bb /kosten/templates/expenses/search.jinja | |
parent | 6f6c8af2a55fabb69372e3fc4e8504167805d018 (diff) | |
download | kosten-81493afa53a1a1d5ff4b417d05febf9f9e2a172b.tar.gz kosten-81493afa53a1a1d5ff4b417d05febf9f9e2a172b.tar.bz2 kosten-81493afa53a1a1d5ff4b417d05febf9f9e2a172b.zip |
Restructure
Diffstat (limited to 'kosten/templates/expenses/search.jinja')
-rw-r--r-- | kosten/templates/expenses/search.jinja | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/kosten/templates/expenses/search.jinja b/kosten/templates/expenses/search.jinja new file mode 100644 index 0000000..5cd294b --- /dev/null +++ b/kosten/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 %} |