diff options
Diffstat (limited to 'templates/pages/constlist.jinja')
-rw-r--r-- | templates/pages/constlist.jinja | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/templates/pages/constlist.jinja b/templates/pages/constlist.jinja new file mode 100644 index 0000000..ffe121f --- /dev/null +++ b/templates/pages/constlist.jinja @@ -0,0 +1,23 @@ +{% extends "page.jinja" %} + +{% block heading %} + Konstante Kosten +{% endblock %} + +{% block content %} + <p><a href="{{ url_for(".add") }}">Neuen Eintrag hinzufügen</a></p> + + {{ list(current, "Aktuell") }} + + {% if future %} {{ list(future, "Zukünftige") }} {% endif %} + {% if old %} {{ list(old, "Veraltet") }} {% endif %} +{% endblock %} + +{% macro list(list, h) %} + <h2>{{ h }}</h2> + <ul class="arrow"> + {% for c in list -%} + <li><a href="{{ url_for(".show", id = c.id) }}">{{c.description}} ({{c.expense | eur}})</a></li> + {% endfor %} + </ul> +{% endmacro %} |