From d717622b34f6684da3f4e11368c5614860c4df61 Mon Sep 17 00:00:00 2001 From: Walter Lorenzetti Date: Wed, 9 Oct 2024 12:02:25 +0200 Subject: [PATCH] Add active column to users list table (#942) Co-authored-by: wlorenzetti --- .../templates/usersmanage/user_list.html | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/g3w-admin/usersmanage/templates/usersmanage/user_list.html b/g3w-admin/usersmanage/templates/usersmanage/user_list.html index a641cfba4..bb3ee7ed6 100644 --- a/g3w-admin/usersmanage/templates/usersmanage/user_list.html +++ b/g3w-admin/usersmanage/templates/usersmanage/user_list.html @@ -30,10 +30,12 @@

{% trans 'Roles' %} {% trans 'User groups' %} {% if user.is_superuser %} - {% trans ' Macro groups' %} + {% trans 'Macro groups' %} {% endif %} {% endif %} - + {% if user.is_superuser or user|has_group:G3W_EDITOR1 %} + {% trans 'Active' %} + {% endif %} {% if user.is_staff and user.is_superuser %} {% trans 'Superuser' %} {% trans 'Staff' %} @@ -98,6 +100,13 @@

{% endif %} {% endif %} + {% if user.is_superuser or user|has_group:G3W_EDITOR1 %} + + {% if object.is_active %} + + {% endif %} + + {% endif %} {% if user.is_staff and user.is_superuser %}