From e5d0602eb96ebced270fce08824ab59e253d56f9 Mon Sep 17 00:00:00 2001 From: Faheedkhan Date: Mon, 30 Jun 2025 13:57:19 +0300 Subject: [PATCH] update --- templates/groups/group_list.html | 3 ++- templates/users/user_detail.html | 10 +++++++++- templates/users/user_list.html | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/templates/groups/group_list.html b/templates/groups/group_list.html index f20bc986..dafbbb28 100644 --- a/templates/groups/group_list.html +++ b/templates/groups/group_list.html @@ -11,7 +11,8 @@
diff --git a/templates/users/user_detail.html b/templates/users/user_detail.html index 3f4127d8..54c96352 100644 --- a/templates/users/user_detail.html +++ b/templates/users/user_detail.html @@ -18,7 +18,15 @@

{{ _("Phone Number") }}: {{ user_.phone_number }}

-

{{ _("Role") }}: {{ user_.staff_type }}

+
+ {{ _("Roles") }}: + {% for group in user_.groups %} + {{ group.name }} + {% if not forloop.last %} + & + {% endif %} + {% endfor %} +
diff --git a/templates/users/user_list.html b/templates/users/user_list.html index 846cdb75..a5e0813e 100644 --- a/templates/users/user_list.html +++ b/templates/users/user_list.html @@ -6,7 +6,6 @@ {% block content %}
-
@@ -47,6 +46,7 @@ {{ user.email }} {{ user.phone_number }} + {% for group in user.groups %} {% trans group.name|title %} {% endfor %}