blob: 07687fb40273bc381df3b8e9d77a41bc4fc23ffd (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
{% import "macros/paging.html" as paging %}
{% extends "base.html" %}
{% block title %}
Équilibrages
{% endblock title %}
{% block main %}
<section class="g-Section">
{% if not balancings %}
<div class="g-Table__NoResults">
Il n’y a aucun équilibrage.
</div>
{% endif %}
<a
class="g-Paragraph g-Button__Validate"
href="/balancing?page={{ page or 1 }}"
>
Ajouter un équilibrage
</a>
{% if balancings %}
<div class="g-Table">
<div class="g-Table__Row g-Table__Row--Header">
<span class="g-Table__Cell">Montant</span>
<span class="g-Table__Cell">De</span>
<span class="g-Table__Cell">Vers</span>
<span class="g-Table__Cell">Date</span>
</div>
{% for balancing in balancings %}
<a
class="g-Table__Row {% if highlight == balancing.id %} g-Table__Row--Highlight {% endif %}"
href="/balancing/{{ balancing.id }}?page={{ page or 1 }}"
>
<span class="g-Table__Cell g-Table__NumericCell">
{{ balancing.amount | euros() }}
</span>
<span class="g-Table__Cell">{{ balancing.source }}</span>
<span class="g-Table__Cell">{{ balancing.destination }}</span>
<span class="g-Table__Cell">{{ balancing.date }}</span>
</a>
{% endfor %}
</div>
{{ paging.view(
url="/balancings",
page=page,
max_page=max_page
) }}
{% endif %}
</section>
{% endblock main %}
|