{% if elements %} {% if sum %}

Total : {{ sum|floatformat:-2 }}€{% if refunded %} (soit {{ monthly|floatformat:-2 }}€ par mois){% endif %}

{% endif %}
{% for e in elements %} {% if refunds %} {% elif payments %} {% else %}
{% endif %} {{ e.title }} le {{ e.date|date:"SHORT_DATE_FORMAT" }} : {{ e.eur_value|floatformat:-2 }}€ {% if refunds or payments %} {% else %}
{% endif %} {% endfor %}
{% else %}

{% firstof default_nothing "Il n'y a rien ici..." %}

{% endif %}