{% extends 'base.html.twig' %} {% block title %}Budgets {% endblock %} {% block body %}

Budgets

{% if canAdd %} Ajouter un budget {% endif %}
{% if canGoPrevious %} {{ ux_icon('mdi:arrow-left', { class: 'w-7 h-7' }) }} {% else %} {{ ux_icon('mdi:arrow-left', { class: 'w-7 h-7' }) }} {% endif %}

{{ date(year ~ '-' ~ month)|format_date(pattern='MMMM yyyy', locale='fr')|capitalize }}

{% if canGoNext %} {{ ux_icon('mdi:arrow-right', { class: 'w-7 h-7' }) }} {% else %} {{ ux_icon('mdi:arrow-right', { class: 'w-7 h-7' }) }} {% endif %}
{% for budget in budgets %} {{ component('Budget:BudgetComponent', { budgetId: budget.id, key: budget.id }) }} {% else %}
Aucun budget défini pour ce mois.
{% endfor %}
{% include "budget/_show.html.twig" %}
{% endblock %}