aff_cotisations.html 2.38 KB
Newer Older
Dalahro's avatar
Dalahro committed
1
{% if facture_list.paginator %}
lhark's avatar
lhark committed
2
{% include "pagination.html" with list=facture_list %}
Dalahro's avatar
Dalahro committed
3
{% endif %}
4

root's avatar
root committed
5
6
7
8
9
    <table class="table table-striped">
        <thead>
            <tr>
                <th>Utilisateur</th>
                <th>Designation</th>
Dalahro's avatar
Dalahro committed
10
                <th>Prix total</th>
root's avatar
root committed
11
12
                <th>Moyen de paiement</th>
                <th>Date</th>
lhark's avatar
lhark committed
13
14
                <th></th>
                <th></th>
15
                <th></th>
root's avatar
root committed
16
17
18
19
            </tr>
        </thead>
        {% for facture in facture_list %}
        <tr>
lhark's avatar
lhark committed
20
            <td><a href="{% url 'users:profil' userid=facture.user.id %}">{{ facture.user }}</a></td>
root's avatar
root committed
21
            <td>{{ facture.name }}</td>
Dalahro's avatar
Dalahro committed
22
            <td>{{ facture.prix_total }}</td>
root's avatar
root committed
23
24
            <td>{{ facture.paiement }}</td>
            <td>{{ facture.date }}</td>
25
            {% if is_cableur %}
lhark's avatar
lhark committed
26
27
            <td>
            <div class="dropdown">
28
29
30
31
32
33
            <button class="btn btn-default dropdown-toggle" type="button" id="editionfacture" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
            Modifier
            <span class="caret"></span>
            </button>
            <ul class="dropdown-menu" aria-labelledby="editionfacture">
            {% if facture.valid and not facture.control or is_trez %}
lhark's avatar
lhark committed
34
35
                <li><a href="{% url 'cotisations:edit-facture' facture.id %}"><i class="glyphicon glyphicon-bitcoin"></i> Editer</a></li>
                <li><a href="{% url 'cotisations:del-facture' facture.id %}"><i class="glyphicon glyphicon-trash"></i> Supprimer</a></li>
36
            {% else %}
lhark's avatar
lhark committed
37
                <li>Facture controlée</li>
38
            {% endif %}
lhark's avatar
lhark committed
39
40
41
42
43
44
45
46
47
48
49
50
            </ul>
            </div>
            </td>
            {% endif %}
            <td>
            {% if facture.valid %}
                <a class="btn btn-primary btn-sm" role="button" href="{% url 'cotisations:facture-pdf' facture.id %}">
                    <i class="glyphicon glyphicon-save"></i>
                    PDF
                </a>
            {% else %}
                <font color="red">Facture invalide</font>
51
            {% endif %}
lhark's avatar
lhark committed
52
53
54
55
56
57
            </td>
            <td class="text-right">
                <a class="btn btn-info btn-sm" role="button" title="Historique" href="{% url 'cotisations:history' 'facture' facture.id %}">
                    <i class="glyphicon glyphicon-time"></i>
                </a>
            </td>
root's avatar
root committed
58
59
60
61
        </tr>
        {% endfor %}
    </table>