From 99466c6ceb848cf8147645f25deea89804b7b279 Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 10 Oct 2021 21:21:06 +0200 Subject: Filter payments by start and end date --- templates/payment/table.html | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'templates/payment/table.html') diff --git a/templates/payment/table.html b/templates/payment/table.html index c187f17..b0a6cee 100644 --- a/templates/payment/table.html +++ b/templates/payment/table.html @@ -28,9 +28,13 @@ class="g-Paragraph g-Button__Validate" href="/payment{{ payments_params( page=query.page, + frequency=query.frequency, name=query.name, cost=query.cost, - frequency=query.frequency + user=query.user, + category=query.category, + start_date=query.start_date, + end_date=query.end_date ) }}" > Ajouter un paiement @@ -52,9 +56,13 @@ class="g-Table__Row {% if query.highlight == payment.id %} g-Table__Row--Highlight {% endif %}" href="/payment/{{ payment.id }}{{ payments_params( page=query.page, + frequency=query.frequency, name=query.name, cost=query.cost, - frequency=query.frequency + user=query.user, + category=query.category, + start_date=query.start_date, + end_date=query.end_date ) }}" > {{ payment.name }} @@ -82,10 +90,13 @@ {{ paging::paging( url="/" ~ payments_params( + frequency=query.frequency, name=query.name, cost=query.cost, - frequency=query.frequency, - category=query.category + user=query.user, + category=query.category, + start_date=query.start_date, + end_date=query.end_date ), page=page, max_page=max_page -- cgit v1.2.3