Consommations ({{user}})
+Consommations ({{user}})
@@ -28,7 +28,7 @@
{% for c in consumptions %}
- {{c.product}}
+ {% if perms.gestion.view_product %}{{ c.product.name }}{% else %}{{c.product.name}}{% endif %}
{{c.quantity}}
{{c.amount}}
{{c.paymentMethod}}
diff --git a/users/templates/users/all_menus.html b/users/templates/users/all_menus.html
index 0e3921d..b412d90 100644
--- a/users/templates/users/all_menus.html
+++ b/users/templates/users/all_menus.html
@@ -10,7 +10,7 @@
{% block content %}
-
Consommations de menus ({{user}})
+Consommations de menus ({{user}})
diff --git a/users/templates/users/group_profile.html b/users/templates/users/group_profile.html
index 3d5ebf0..17f89cc 100644
--- a/users/templates/users/group_profile.html
+++ b/users/templates/users/group_profile.html
@@ -72,7 +72,7 @@
{% for user in group.user_set.all %}
- {{ user }}
+ {{user}}
Profil
Retirer
diff --git a/users/templates/users/profile.html b/users/templates/users/profile.html
index caea4fd..778dac2 100644
--- a/users/templates/users/profile.html
+++ b/users/templates/users/profile.html
@@ -124,7 +124,7 @@
{% for c in lastConsumptions %}
- {{c.product}}
+ {% if perms.gestion.view_product %}{{ c.product.name }}{% else %}{{c.product}}{% endif %}
{{c.quantity}}
{{c.amount}} €
{{c.paymentMethod}}
diff --git a/users/templates/users/superusers_index.html b/users/templates/users/superusers_index.html
index 157aebf..9c4a5ff 100644
--- a/users/templates/users/superusers_index.html
+++ b/users/templates/users/superusers_index.html
@@ -23,7 +23,7 @@
{% for user in superusers %}
- {{ user }}
+ {{user}}
Profil
Retirer des superusers
diff --git a/users/templates/users/users_index.html b/users/templates/users/users_index.html
index 7cc5545..7bc806d 100644
--- a/users/templates/users/users_index.html
+++ b/users/templates/users/users_index.html
@@ -25,7 +25,7 @@
{% for user in users %}
- {{ user }}
+ {{user}}
Profil
{% if perms.auth.change_user %}
{{ user.is_active | yesno:"Désa,A"}}ctiver