sidebar.html 2.78 KB
Newer Older
1
{% extends 'base.html' %}
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
{% 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 © 2017  Gabriel Détraz
Copyright © 2017  Goulven Kermarec
Copyright © 2017  Augustin Lemesle

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 %}

26
{% load acl %}
27
{% load i18n %}
28 29

{% block sidebar %}
30
    {% can_create CustomInvoice %}
31
    <a class="list-group-item list-group-item-success" href="{% url 'cotisations:new-custom-invoice' %}">
32
        <i class="fa fa-plus"></i> {% trans "Create an invoice" %}
lhark's avatar
lhark committed
33
    </a>
34
    <a class="list-group-item list-group-item-warning" href="{% url 'cotisations:control' %}">
35
        <i class="fa fa-eye"></i> {% trans "Control the invoices" %}
lhark's avatar
lhark committed
36
    </a>
37
    {% acl_end %}
38
    {% can_view_all Facture %}
39
    <a class="list-group-item list-group-item-info" href="{% url 'cotisations:index' %}">
40
        <i class="fa fa-list-ul"></i> {% trans "Invoices" %}
lhark's avatar
lhark committed
41
    </a>
42
    {% acl_end %}
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
43
    {% can_view_all CustomInvoice %}
44
    <a class="list-group-item list-group-item-info" href="{% url 'cotisations:index-custom-invoice' %}">
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
45 46 47
        <i class="fa fa-list-ul"></i> {% trans "Custom invoices" %}
    </a>
    {% acl_end %}
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
48
    {% can_view_all CostEstimate %}
49 50
    <a class="list-group-item list-group-item-info" href="{% url 'cotisations:index-cost-estimate' %}">
        <i class="fa fa-list-ul"></i> {% trans "Cost estimates" %}
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
51 52
    </a>
    {% acl_end %}
53
    {% can_view_all Article %}
54
    <a class="list-group-item list-group-item-info" href="{% url 'cotisations:index-article' %}">
55
        <i class="fa fa-list-ul"></i> {% trans "Available articles" %}
lhark's avatar
lhark committed
56
    </a>
57 58
    {% acl_end %}
    {% can_view_all Banque %}
59
    <a class="list-group-item list-group-item-info" href="{% url 'cotisations:index-banque' %}">
60
        <i class="fa fa-list-ul"></i> {% trans "Banks" %}
lhark's avatar
lhark committed
61
    </a>
62 63
    {% acl_end %}
    {% can_view_all Paiement %}
64
    <a class="list-group-item list-group-item-info" href="{% url 'cotisations:index-paiement' %}">
65
        <i class="fa fa-list-ul"></i> {% trans "Payment methods" %}
lhark's avatar
lhark committed
66
    </a>
67
    {% acl_end %}
68
{% endblock %}
69