{% import "macros/paging.html" as paging %} {% extends "base.html" %} {% block title %} Paiements {% endblock title %} {% block main %}
{% if query.frequency == "Monthly" %} Ponctuels / Mensuels {% else %} Ponctuels / Mensuels {% endif %}
{% if query.frequency != "Monthly" %} {% endif %}
Nouveau
{% if not payments %}
Aucun paiement ne correspond à votre recherche.
{% else %}
{{ count | numeric }} paiement{{ count | pluralize }} comptabilisant {{ total_cost | euros() }}.
Nom Coût Personne Catégorie {% if query.frequency != "Monthly" %} Date {% endif %}
{% for payment in payments %} {{ payment.name }} {{ payment.cost | euros() }} {{ payment.user }} {{ payment.category_name }} {% if query.frequency != "Monthly" %} {{ payment.date }} {% endif %} {% endfor %}
{{ paging::paging( url="/" ~ payments_params( search=query.search, frequency=query.frequency, category=query.category ), page=page, max_page=max_page ) }} {% endif %} {% endblock main %}