From bafd5fd423f9e9f3cb8ba78a77b50ac451322fb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Kervella?= Date: Mon, 1 Jan 2018 20:06:02 +0000 Subject: [PATCH] Better display of permissions --- users/templates/users/aff_listright.html | 57 ++++++++++++++---------- 1 file changed, 34 insertions(+), 23 deletions(-) diff --git a/users/templates/users/aff_listright.html b/users/templates/users/aff_listright.html index 299bd6ad..2e63d102 100644 --- a/users/templates/users/aff_listright.html +++ b/users/templates/users/aff_listright.html @@ -22,7 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. {% endcomment %} - +
@@ -33,23 +33,18 @@ with this program; if not, write to the Free Software Foundation, Inc., {% for listright in listright_list %} - + @@ -60,17 +55,32 @@ with this program; if not, write to the Free Software Foundation, Inc., @@ -79,9 +89,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
Droit
- + {{ listright.name }} ({{listright.user_set.all|length}} users) {{ listright.gid }} {{ listright.details }}
-
-
    - {% for user in listright.user_set.all %} -
  • - {{user}} - - - -
  • - {% endfor %} -
+
+
+
+
    + {% for perm in listright.permissions.all %} +
  • + {{perm.name}} +
  • + {% endfor %} +
+
+
+
+
+
    + {% for user in listright.user_set.all %} +
  • + {{user}} + + + +
  • + {% endfor %} +
+
+