{% extends 'base.html' %} {% block content %}

{{ t('budgets.add') }}

{{ form.hidden_tag() }}
{{ form.category_id.label(class='form-label') }}{{ form.category_id(class='form-select') }}
{{ form.year.label(class='form-label') }}{{ form.year(class='form-control') }}
{{ form.month.label(class='form-label') }}{{ form.month(class='form-control') }}
{{ form.amount.label(class='form-label') }}{{ form.amount(class='form-control') }}
{{ form.alert_percent.label(class='form-label') }}{{ form.alert_percent(class='form-control') }}

{{ t('budgets.title') }}

{% for budget in budgets %}{% else %}{% endfor %}
{{ t('expenses.category') }}{{ t('common.year') }}{{ t('common.month') }}{{ t('expenses.amount') }}
{{ budget.category.localized_name(current_language) }}{{ budget.year }}{{ budget.month }}{{ budget.amount }}
{{ t('expenses.empty') }}
{% endblock %}