{% extends "budget/base.html" %} {% load static %} {% block content %}

Budget d'hackens {% if perms.budget.add_budgetgroup %} Nouveau budget {% endif %}

{% for budgetGroup in object_list %} {% with all_lines=budgetGroup.get_all_lines %}

Budget {{ budgetGroup.name }} - {{ all_lines|last|last }} € {% if perms.budget.change_budgetgroup %} 🖊️ {% endif %} {% if perms.budget.add_budgetline %} Nouvelle ligne {% endif %}

{% if budgetGroup.description.strip %}

Description: {{ budgetGroup.description.strip }}

{% endif %} {% for line in all_lines %} {% if forloop.first %} {% if perms.budget.change_budgetline %} {% endif %} {% endif %} {% if perms.budget.change_budgetline %} {% endif %} {% if forloop.last %}
Date Libellé Montant Budget restant Ajouté par
{{ line.0.date|date:"Y-m-d" }} {{ line.0.title }} {{ line.0.amount }}€ {{ line.1 }}€ {{ line.0.author.name }}
🖊️ {% if perms.budget.delete_budgetline %} 🗑️ {% endif %}
{% endif %} {% empty %}

Ce budget est vide

{% endfor %} {% if perms.budget.add_budgetline %} Nouvelle ligne {% endif %}
{% endwith %} {% endfor %} {% endblock %}