From 11052951b74b9ad4b6a9412ae490086235f9154b Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 3 Jan 2021 13:40:40 +0100 Subject: Rewrite in Rust --- templates/payment/table.html | 128 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 templates/payment/table.html (limited to 'templates/payment/table.html') diff --git a/templates/payment/table.html b/templates/payment/table.html new file mode 100644 index 0000000..19b56b4 --- /dev/null +++ b/templates/payment/table.html @@ -0,0 +1,128 @@ +{% 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 + ), + page=page, + max_page=max_page + ) }} + + {% endif %} +{% endblock main %} -- cgit v1.2.3