2019-01-19 22:39:48 +00:00
< span class = "tabulation2" >
< i class = "fa fa-home" > < / i > < a href = "{% url 'homepage' %}" > Accueil< / a >
< / span >
2018-10-05 22:03:02 +00:00
{% if request.user.is_authenticated %}
< span class = "tabulation2" >
2019-01-06 04:35:28 +00:00
< i class = "fa fa-user" > < / i > < a href = "{% url 'users:profile' request.user.pk %}" > Mon profil< / a >
2018-10-05 22:03:02 +00:00
< / span >
2018-12-02 18:26:33 +00:00
{% if perms.gestion.add_consumptionhistory or perms.gestion.add_refund or perms.gestion.add_reload %}
2018-10-05 22:03:02 +00:00
< span class = "tabulation2" >
2019-01-06 04:35:28 +00:00
< i class = "fa fa-cash-register" > < / i > < a href = "{% url 'gestion:manage' %}" > Transactions< / a >
2018-10-05 22:03:02 +00:00
< / span >
2018-12-02 18:26:33 +00:00
{% endif %}
{% if perms.auth.add_user or perms.auth.view_user or perms.auth.add_group or perms.auth.view_group or perms.users.add_school or perms.users.view_school %}
2018-10-05 22:03:02 +00:00
< span class = "tabulation2" >
2019-01-06 04:35:28 +00:00
< i class = "fa fa-users" > < / i > < a href = "{% url 'users:index' %}" > Gestion des clients< / a >
2018-10-05 22:03:02 +00:00
< / span >
2018-12-02 18:26:33 +00:00
{% endif %}
{% if perms.gestion.view_product or perms.gestion.add_product or perms.gestion.add_keg or perms.gestion.view_keg or perms.gestion.change_keg or perms.gestion.view_menu or perms.gestion.add_menu %}
2018-10-05 22:03:02 +00:00
< span class = "tabulation2" >
2019-01-06 04:35:28 +00:00
< i class = "fa fa-dolly-flatbed" > < / i > < a href = "{% url 'gestion:productsIndex' %}" > Gestion des produits< / a >
2018-10-05 22:03:02 +00:00
< / span >
2018-12-02 18:26:33 +00:00
{% endif %}
2019-08-27 21:21:15 +00:00
{% if perms.gestion.change_product %}
< span class = "tabulation2" >
< br >
< i class = "fa fa-boxes" > < / i > < a href = "{% url 'gestion:stocks' %}" > Stocks< / a >
< / span >
{% endif %}
2018-10-05 22:03:02 +00:00
< span class = "tabulation2" >
2019-01-06 04:35:28 +00:00
< i class = "fa fa-list-ol" > < / i > < a href = "{% url 'gestion:ranking' %}" > Classement< / a >
2018-10-05 22:03:02 +00:00
< / span >
2018-12-02 18:26:33 +00:00
{% if perms.preferences.change_generalpreferences %}
2018-10-05 22:03:02 +00:00
< span class = "tabulation2" >
2019-01-06 04:35:28 +00:00
< i class = "fa fa-tools" > < / i > < a href = "{% url 'preferences:generalPreferences' %}" > Admin< / a >
2018-10-05 22:03:02 +00:00
< / span >
2018-12-02 18:26:33 +00:00
{% endif %}
2019-01-05 23:01:30 +00:00
{% if request.user.is_staff %}
2019-05-03 21:27:11 +00:00
< span class = "tabulation2" >
2019-08-27 16:25:53 +00:00
< i class = "fa fa-chart-bar" > < / i > < a href = "{% url 'stats' %}" > Stats< / a >
2019-06-23 08:54:21 +00:00
< / span >
< span class = "tabulation2" >
< i class = "fa fa-business-time" > < / i > < a href = "{% url 'gestion:gen_releve' %}" > Relevé< / a >
< / span >
{% endif %}
{% if perms.preferences.can_divide %}
2019-01-05 23:01:30 +00:00
< span class = "tabulation2" >
2019-06-23 08:54:21 +00:00
< i class = "fa fa-hand-holding-usd" > < / i > < a href = "{% url 'gestion:divide' %}" > Répartition< / a >
2019-01-05 23:01:30 +00:00
< / span >
{% endif %}
2019-06-23 11:46:12 +00:00
{% if perms.users.can_generate_invoices %}
< span class = "tabulation2" >
< i class = "fa fa-file-invoice-dollar" > < / i > < a href = "{% url 'gestion:gen_invoice' %}" > Facture< / a >
< / span >
{% endif %}
2018-12-02 18:26:33 +00:00
{% if perms.preferences.view_cotisation %}
2018-10-05 22:03:02 +00:00
< span class = "tabulation2" >
2019-01-06 04:35:28 +00:00
< i class = "fa fa-calendar-check" > < / i > < a href = "{% url 'preferences:cotisationsIndex' %}" > Cotisations< / a >
2018-10-05 22:03:02 +00:00
< / span >
2018-12-02 18:26:33 +00:00
{% endif %}
2019-06-23 12:53:18 +00:00
{% if perms.preferences.view_paymentmethod %}
2018-10-05 22:03:02 +00:00
< span class = "tabulation2" >
2019-01-06 04:35:28 +00:00
< i class = "fa fa-comments-dollar" > < / i > < a href = "{% url 'preferences:paymentMethodsIndex' %}" > Moyens de paiement< / a >
2018-10-05 22:03:02 +00:00
< / span >
2018-12-02 18:26:33 +00:00
{% endif %}
2019-06-23 12:53:18 +00:00
{% if perms.preferences.view_priceprofile %}
< span class = "tabulation2" >
< i class = "fa fa-search-dollar" > < / i > < a href = "{% url 'preferences:priceProfilesIndex' %}" > Profils de prix< / a >
< / span >
2019-06-23 13:31:55 +00:00
< span class = "tabulation2" >
< i class = "fa fa-search-dollar" > < / i > < a href = "{% url 'gestion:compute-price' %}" > Calcul de prix< / a >
< / span >
2019-06-23 12:53:18 +00:00
{% endif %}
2019-09-12 07:40:43 +00:00
< span class = "tabulation2" >
< i class = "fa fa-bug" > < / i > < a href = "{% url 'preferences:addImprovement' %}" > Proposition d'amélioration< / a >
< / span >
{% if perms.preferences.view_improvement %}
< span class = "tabulation2" >
< i class = "fa fa-bug" > < / i > < a href = "{% url 'preferences:improvementsIndex' %}" > Améliorations< / a >
< / span >
{% endif %}
2018-10-05 22:03:02 +00:00
< span class = "tabulation2" >
2019-01-06 04:35:28 +00:00
< i class = "fa fa-bed" > < / i > < a href = "{% url 'users:logout' %}" > Deconnexion< / a >
2018-10-05 22:03:02 +00:00
< / span >
{% else %}
2019-01-19 22:39:48 +00:00
< span class = "tabulation2" >
< i class = "fa fa-sign-in-alt" > < / i > < a href = "{% url 'users:login' %}" > Connexion< / a >
< / span >
2018-10-05 22:03:02 +00:00
{% endif %}