diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2014-12-15 00:44:30 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2014-12-15 00:44:30 +0100 |
commit | eb1886ce939e4268bf0aa43c0de85515cf2a6604 (patch) | |
tree | 3e76f504669bd7279e71e877a3714f32fba605b0 /templates/expenses | |
parent | 887be010bf1aa13580a36e6829b5690e03abfe9a (diff) | |
download | kosten-eb1886ce939e4268bf0aa43c0de85515cf2a6604.tar.gz kosten-eb1886ce939e4268bf0aa43c0de85515cf2a6604.tar.bz2 kosten-eb1886ce939e4268bf0aa43c0de85515cf2a6604.zip |
Search function
Diffstat (limited to '')
-rw-r--r-- | templates/expenses/search.jinja | 25 |
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 %} |