28 lines
875 B
HTML
28 lines
875 B
HTML
{% if elements %}
|
|
{% if sum %}
|
|
<p>
|
|
Total : {{ sum|floatformat:-2 }}€
|
|
</p>
|
|
{% endif %}
|
|
<div class="list-group">
|
|
{% for e in elements %}
|
|
{% if refunds %}
|
|
<a class="list-group-item" href="{% url 'refund_edit' pk=e.pk %}">
|
|
{% elif payments %}
|
|
<a class="list-group-item" href="{% url 'payment_edit' pk=e.pk %}">
|
|
{% else %}
|
|
<div class="list-group-item">
|
|
{% endif %}
|
|
{{ e.title }} le {{ e.date|date:"SHORT_DATE_FORMAT" }} : {{ e.eur_value|floatformat:-2 }}€
|
|
{% if refunds or payments %}
|
|
</a>
|
|
{% else %}
|
|
</div>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</div>
|
|
{% else %}
|
|
<p>
|
|
{% firstof default_nothing "Il n'y a rien ici..." %}
|
|
</p>
|
|
{% endif %} |