{% from "_category_input.html" import category_input %}

Expenses

Total{% if month %} · {{ month }}{% endif %} {{ total|money }} €
{% if error %} {% endif %}
{{ category_input(categories, "category-list") }}

{% if month %}Expenses in {{ month }}{% else %}All expenses{% endif %}

{% if expenses %} {% if edit_id %}
{% endif %} {% for id, amount, category, description, date in expenses %} {% if id == edit_id %} {% else %} {% endif %} {% endfor %}
Date Category Description Amount
{{ category_input(categories, "edit-category-list", edit_form.category, "edit-form") }} Cancel
{{ date }} {{ category }} {{ description }} {{ amount|money }} € Edit
{% else %}

{% if month %}No expenses in {{ month }}.{% else %}No expenses yet. Add your first one above.{% endif %}

{% endif %}

By category

{% if by_category %} {% else %}

Nothing to total yet.

{% endif %}