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 @@
- {% trans "Add Group" %} + {% trans "Add Group" %} + {% trans "Back to Staffs" %}
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 %}