aboutsummaryrefslogtreecommitdiff
path: root/templates/payment/table.html
diff options
context:
space:
mode:
authorJoris2021-10-09 10:27:45 +0200
committerJoris2021-10-10 21:21:32 +0200
commitaf1177e814d19e63ce39c42fc7c5888e4b3d9604 (patch)
tree9e8d495f21a82e8cff92fe7692eb856b0e900e07 /templates/payment/table.html
parenta370f989fe3b864676ed9aecf57f70e55e7958b2 (diff)
Search by category
Diffstat (limited to 'templates/payment/table.html')
-rw-r--r--templates/payment/table.html20
1 files changed, 19 insertions, 1 deletions
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 }}"
/>
+
+ <label class="g-Form__Label">
+ Catégorie
+ <select name="category" class="g-Form__Select">
+ <option disabled selected value></option>
+ {% for category in categories %}
+ <option
+ value="{{ category.id }}"
+ style="color: {{ category.color }}"
+ {% if category.id == query.category %} selected {% endif %}
+ >
+ {{ category.name }}
+ </option>
+ {% endfor %}
+ </select>
+ </label>
+
<input type="submit" class="g-Button__Search" value="🔍">
</form>
{% 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