From 8ccd762bfc3d7da2716749d709cf5cc216882a23 Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 10 Oct 2021 18:20:57 +0200 Subject: Search payments by categories explicitely It was already possible to search by categories in the full text input, but it could have matched other fields as well. Explicitely add a select to search by categories. Also put the search form in a left aside. The mobile view is not done for the moment. --- templates/category/create.html | 44 +++++++++++++++++++------------------ templates/category/table.html | 49 ++++++++++++++++++++++-------------------- templates/category/update.html | 49 +++++++++++++++++++++--------------------- 3 files changed, 74 insertions(+), 68 deletions(-) (limited to 'templates/category') diff --git a/templates/category/create.html b/templates/category/create.html index e206898..af95e16 100644 --- a/templates/category/create.html +++ b/templates/category/create.html @@ -6,7 +6,7 @@ {% block main %} -
+

Retour aux categories @@ -22,30 +22,32 @@

{% endif %} - - - - - + + +
-
+ {% endblock main %} diff --git a/templates/category/table.html b/templates/category/table.html index 896304a..ad42258 100644 --- a/templates/category/table.html +++ b/templates/category/table.html @@ -6,33 +6,36 @@ {% block main %} -
- Nouveau -
+
- {% if not categories %} + {% if not categories %} +
+ Il n’y a aucune catégorie. +
+ {% endif %} -
- Il n’y a aucune catégorie. + - {% else %} - -
- {% for category in categories %} - - + {% for category in categories %} + - {{ category.name }} - - - {% endfor %} -
+ + {{ category.name }} + + + {% endfor %} +
+ {% endif %} + +
- {% endif %} {% endblock main %} diff --git a/templates/category/update.html b/templates/category/update.html index a4c1481..48dda06 100644 --- a/templates/category/update.html +++ b/templates/category/update.html @@ -6,7 +6,7 @@ {% block main %} -
+

Retour aux catégories @@ -30,24 +30,26 @@ >

Modification

- - - - - + + +
@@ -67,19 +69,18 @@ utilisée.

{% else %} -
+
{% endblock main %} -- cgit v1.2.3