aboutsummaryrefslogtreecommitdiff
path: root/templates/category/table.html
diff options
context:
space:
mode:
authorJoris2021-10-10 18:20:57 +0200
committerJoris2021-10-10 21:21:34 +0200
commit8ccd762bfc3d7da2716749d709cf5cc216882a23 (patch)
tree0629f749da8b06698e760b275070ba6a2e8bde0c /templates/category/table.html
parentaf1177e814d19e63ce39c42fc7c5888e4b3d9604 (diff)
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.
Diffstat (limited to 'templates/category/table.html')
-rw-r--r--templates/category/table.html49
1 files changed, 26 insertions, 23 deletions
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 %}
- <div class="g-Paragraph g-Payments__Header">
- <a class="g-Button__Validate" href="/category">Nouveau</a>
- </div>
+ <section class="g-Section">
- {% if not categories %}
+ {% if not categories %}
+ <div class="g-Payments__NoResults">
+ Il n’y a aucune catégorie.
+ </div>
+ {% endif %}
- <div class="g-Payments__NoResults">
- Il n’y a aucune catégorie.
+ <div class="g-Paragraph">
+ <a class="g-Button__Validate" href="/category">Ajouter une catégorie</a>
</div>
- {% else %}
-
- <div class="g-Table">
- {% for category in categories %}
- <a
- class="g-Table__Row {% if highlight == category.id %} g-Table__Row--Highlight {% endif %}"
- href="/category/{{ category.id }}"
- >
- <span
- class="g-Table__Cell"
- style="color: {{ category.color }}"
+ {% if categories %}
+ <div class="g-Table">
+ {% for category in categories %}
+ <a
+ class="g-Table__Row {% if highlight == category.id %} g-Table__Row--Highlight {% endif %}"
+ href="/category/{{ category.id }}"
>
- {{ category.name }}
- </span>
- </a>
- {% endfor %}
- </div>
+ <span
+ class="g-Table__Cell"
+ style="color: {{ category.color }}"
+ >
+ {{ category.name }}
+ </span>
+ </a>
+ {% endfor %}
+ </div>
+ {% endif %}
+
+ </section>
- {% endif %}
{% endblock main %}