aboutsummaryrefslogtreecommitdiff
path: root/templates/category/table.html
blob: 896304a76553770aa10d2174c158b590d2f1c582 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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 %}