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/create.html | 6 +++++- templates/payment/table.html | 19 +++++++++++++++---- templates/payment/table/search.html | 20 ++++++++++++++++++++ templates/payment/update.html | 18 +++++++++++++++--- 4 files changed, 55 insertions(+), 8 deletions(-) (limited to 'templates/payment') diff --git a/templates/payment/create.html b/templates/payment/create.html index 4fc3245..519729e 100644 --- a/templates/payment/create.html +++ b/templates/payment/create.html @@ -12,9 +12,13 @@ class="g-Link g-Media__Large" href="/{{ 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 ) }}" > Retour aux paiements 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 diff --git a/templates/payment/table/search.html b/templates/payment/table/search.html index 8805cbb..e46b582 100644 --- a/templates/payment/table/search.html +++ b/templates/payment/table/search.html @@ -63,6 +63,26 @@ + + + + diff --git a/templates/payment/update.html b/templates/payment/update.html index 002117e..07549de 100644 --- a/templates/payment/update.html +++ b/templates/payment/update.html @@ -12,9 +12,13 @@ class="g-Link g-Media__Large" href="/{{ 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 ) }}" > Retour aux paiements @@ -35,9 +39,13 @@ class="g-Form" action="/payment/{{ payment.id }}/update{{ 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, highlight=query.highlight ) }}" method="POST" @@ -128,9 +136,13 @@ class="g-Form" action="/payment/{{ payment.id }}/delete{{ 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, highlight=query.highlight ) }}" method="POST" -- cgit v1.2.3