aboutsummaryrefslogtreecommitdiff
path: root/templates/category/table.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/category/table.html')
-rw-r--r--templates/category/table.html38
1 files changed, 38 insertions, 0 deletions
diff --git a/templates/category/table.html b/templates/category/table.html
new file mode 100644
index 0000000..896304a
--- /dev/null
+++ b/templates/category/table.html
@@ -0,0 +1,38 @@
+{% extends "base.html" %}
+
+{% block title %}
+ Catégories
+{% endblock title %}
+
+{% block main %}
+
+ <div class="g-Paragraph g-Payments__Header">
+ <a class="g-Button__Validate" href="/category">Nouveau</a>
+ </div>
+
+ {% if not categories %}
+
+ <div class="g-Payments__NoResults">
+ Il n’y a aucune catégorie.
+ </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 }}"
+ >
+ {{ category.name }}
+ </span>
+ </a>
+ {% endfor %}
+ </div>
+
+ {% endif %}
+{% endblock main %}