From af1177e814d19e63ce39c42fc7c5888e4b3d9604 Mon Sep 17 00:00:00 2001 From: Joris Date: Sat, 9 Oct 2021 10:27:45 +0200 Subject: Search by category --- templates/payment/create.html | 26 ++++++++++++++------------ templates/payment/table.html | 20 +++++++++++++++++++- 2 files changed, 33 insertions(+), 13 deletions(-) (limited to 'templates/payment') diff --git a/templates/payment/create.html b/templates/payment/create.html index aea6fcd..5bae767 100644 --- a/templates/payment/create.html +++ b/templates/payment/create.html @@ -72,18 +72,20 @@ {% set category_id = form.category_id | default(value="") %} - - + {% set date = form.date | default(value=now() | date(format="%Y-%m-%d")) %} diff --git a/templates/payment/table.html b/templates/payment/table.html index 19b56b4..5234e05 100644 --- a/templates/payment/table.html +++ b/templates/payment/table.html @@ -44,6 +44,23 @@ class="g-Form__Input g-Payments__SearchInput" value="{{ query.search }}" /> + + + {% endif %} @@ -118,7 +135,8 @@ {{ paging::paging( url="/" ~ payments_params( search=query.search, - frequency=query.frequency + frequency=query.frequency, + category=query.category ), page=page, max_page=max_page -- cgit v1.2.3