summaryrefslogtreecommitdiff
path: root/templates/expenses/search.jinja
blob: 5cd294b9e51aa971d9b397965eb7f11dec7aee70 (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
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 %}