diff --git a/gestion/templates/gestion/products_index.html b/gestion/templates/gestion/products_index.html
index e0d2ac2..764c143 100644
--- a/gestion/templates/gestion/products_index.html
+++ b/gestion/templates/gestion/products_index.html
@@ -2,13 +2,22 @@
{% block entete %}Gestion des produits{% endblock %}
{% block navbar%}
+ {% if perms.gestion.add_product or perms.gestion.view_product %}
Produits
+ {% endif %}
+ {% if perms.gestion.add_keg or perms.gestion.open_keg or perms.gestion.close_keg or perms.gestion.view_keg %}
Futs
+ {% endif %}
+ {% if perms.gestion.add_menu or perms.gestion.view_menu %}
Menus
+ {% endif %}
+ {% if perms.gestion.add_pinte or perms.gestion.change_pinte or perms.gestion.view_pinte or perms.auth.view_user %}
Pintes
+ {% endif %}
{% endblock %}
{% block content %}
+{% if perms.gestion.add_product or perms.gestion.view_product %}
Produits
@@ -24,6 +33,8 @@
{% endif %}
+{% endif %}
+{% if perms.gestion.add_keg or perms.gestion.open_keg or perms.gestion.close_keg or perms.gestion.view_keg %}
Futs
@@ -44,6 +55,8 @@
{% endif %}
+{% endif %}
+{% if perms.gestion.add_menu or perms.gestion.view_menu %}
Menus
@@ -59,6 +72,8 @@
{% endif %}
+{% endif %}
+{% if perms.gestion.add_pinte or perms.gestion.change_pinte or perms.gestion.view_pinte or perms.auth.view_user %}
Pintes
@@ -79,4 +94,5 @@
{% endif %}
+{% endif %}
{% endblock %}
diff --git a/users/templates/users/index.html b/users/templates/users/index.html
index f391ab1..cf16059 100644
--- a/users/templates/users/index.html
+++ b/users/templates/users/index.html
@@ -2,15 +2,28 @@
{% block entete %}Gestion des utilisateurs{% endblock %}
{% block navbar%}
+ {% if perms.auth.add_user or perms.auth.view_user %}
Utilisateurs
+ {% endif %}
+ {% if perms.auth.add_group or perms.auth.view_group %}
Groupes
+ {% endif %}
+ {% if request.user.is_staff %}
Admins
+ {% endif %}
+ {% if request.user.is_superuser %}
Superusers
+ {% endif %}
+ {% if perms.users.add_school or perms.users.view_school %}
Écoles
+ {% endif %}
+ {% if perms.aut.view_user %}
Exportation de données
+ {% endif %}
{% endblock %}
{% block content %}
+{% if perms.auth.add_user or perms.auth.view_user %}
Utilisateurs
@@ -26,18 +39,24 @@
{% endif %}
+{% endif %}
+{% if perms.auth.add_group or perms.auth.view_group %}
+{% endif %}
+{% if request.user.is_staff %}
Admins
@@ -45,12 +64,12 @@
Les admins ont accès à l'interface admin.
Actions possibles :
+{% endif %}
+{% if request.user.is_superuser %}
Superusers
@@ -58,26 +77,28 @@
Attention : les superusers bypass toutes les vérifications de permissions.
Actions possibles :
+{% endif %}
+{% if perms.users.add_school or perms.users.view_school %}
Actions possibles :
- {% if perms.gestion.add_school %}
+ {% if perms.users.add_school %}
Ajouter une école
{% endif %}
- {% if perms.gestion.view_school %}
+ {% if perms.users.view_school %}
Lister les écoles
{% endif %}
+{% endif %}
+{% if perms.auth.view_user %}
Exportation de données
@@ -88,4 +109,5 @@
Exporter au format csv
+{% endif %}
{% endblock %}