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

Groupes

Actions possibles :
+{% 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 %}

Écoles

Actions possibles :
+{% endif %} +{% if perms.auth.view_user %}

Exportation de données

@@ -88,4 +109,5 @@
+{% endif %} {% endblock %}