summaryrefslogtreecommitdiff
path: root/kosten/templates/expenses/search.jinja
blob: 1011ed8604127f7cc8526202f654e3adddc37df7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{% extends "layout.jinja" %}

{% block heading %}
    Suchergebnisse
{% endblock %}

{% block content %}

    {% set ns = namespace(year=None) %}

    {% for exp in exps %}
        {% if exp.year != ns.year %}
            {% if ns.year != None %}</ul>{% endif %}
            {% set ns.year = exp.year %}
            <h2>{{ ns.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 %}