Ce serveur Gitlab sera éteint le 30 juin 2020, pensez à migrer vos projets vers les serveurs gitlab-research.centralesupelec.fr et gitlab-student.centralesupelec.fr !

aff_custom_invoice.html 3.56 KB
Newer Older
Levy--Falk Hugo's avatar
Levy--Falk Hugo committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
{% comment %}
Re2o est un logiciel d'administration développé initiallement au rezometz. Il
se veut agnostique au réseau considéré, de manière à être installable en
quelques clics.

Copyright © 2018  Hugo Levy-Falk

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
{% endcomment %}
{% load i18n %}
{% load acl %}
Levy--Falk Hugo's avatar
Levy--Falk Hugo committed
24
{% load logs_extra %}
25
{% load design %}
Levy--Falk Hugo's avatar
Levy--Falk Hugo committed
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49

<div class="table-responsive">
    {% if custom_invoice_list.paginator %}
    {% include 'pagination.html' with list=custom_invoice_list %}
    {% endif %}

    <table class="table table-striped">
        <thead>
            <tr>
                <th>
                    {% trans "Recipient" as tr_recip %}
                    {% include 'buttons/sort.html' with prefix='invoice' col='user' text=tr_user %}
                </th>
                <th>{% trans "Designation" %}</th>
                <th>{% trans "Total price" %}</th>
                <th>
                    {% trans "Payment method" as tr_payment_method %}
                    {% include 'buttons/sort.html' with prefix='invoice' col='payement' text=tr_payment_method %}
                </th>
                <th>
                    {% trans "Date" as tr_date %}
                    {% include 'buttons/sort.html' with prefix='invoice' col='date' text=tr_date %}
                </th>
                <th>
50
                    {% trans "Invoice ID" as tr_invoice_id %}
Levy--Falk Hugo's avatar
Levy--Falk Hugo committed
51 52
                    {% include 'buttons/sort.html' with prefix='invoice' col='id' text=tr_invoice_id %}
                </th>
53 54 55 56
                <th>
                    {% trans "Paid" as tr_invoice_paid%}
                    {% include 'buttons/sort.html' with prefix='invoice' col='paid' text=tr_invoice_paid %}
                </th>
Levy--Falk Hugo's avatar
Levy--Falk Hugo committed
57 58 59 60 61 62 63 64 65 66 67 68
                <th></th>
                <th></th>
            </tr>
        </thead>
        {% for invoice in custom_invoice_list %}
        <tr>
            <td>{{ invoice.recipient }}</td>
            <td>{{ invoice.name }}</td>
            <td>{{ invoice.prix_total }}</td>
            <td>{{ invoice.payment }}</td>
            <td>{{ invoice.date }}</td>
            <td>{{ invoice.id }}</td>
69
            <td>{{ invoice.paid|tick }}</td>
Levy--Falk Hugo's avatar
Levy--Falk Hugo committed
70
            <td>
71 72 73 74 75 76 77
                {% can_edit invoice %}
                {% include 'buttons/edit.html' with href='cotisations:edit-custom-invoice' id=invoice.id %}
                {% acl_end %}
                {% can_delete invoice %}
                {% include 'buttons/suppr.html' with href='cotisations:del-custom-invoice' id=invoice.id %}
                {% acl_end %}
                {% history_button invoice %}
Levy--Falk Hugo's avatar
Levy--Falk Hugo committed
78
                <a class="btn btn-primary btn-sm" role="button" href="{% url 'cotisations:custom-invoice-pdf' invoice.id %}">
Alexandre Iooss's avatar
Alexandre Iooss committed
79
                    <i class="fa fa-file-pdf-o"></i> {% trans "PDF" %}
Levy--Falk Hugo's avatar
Levy--Falk Hugo committed
80 81 82 83 84 85 86 87 88 89
                </a>
            </td>
        </tr>
        {% endfor %}
    </table>

    {% if custom_invoice_list.paginator %}
    {% include 'pagination.html' with list=custom_invoice_list %}
    {% endif %}
</div>