{% import "macros/paging.html" as paging %} {% extends "base.html" %} {% block title %} Paiements {% endblock title %} {% block main %} {% if not payments %} Aucun paiement ne correspond à votre recherche. {% else %} {{ count | numeric }} paiement{{ count | pluralize }} comptabilisant {{ total_cost | euros() }}. {% endif %} Ajouter un paiement {% if query.frequency != "Monthly" %} ponctuel {% else %} mensuel {% endif %} Rechercher {% if payments %} 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( frequency=query.frequency, name=query.name, cost=query.cost, user=query.user, category=query.category, start_date=query.start_date, end_date=query.end_date ), page=page, max_page=max_page ) }} {% endif %} {% endblock main %}