From 059bb67ced96fa93aae5008216b974e6a35581d3 Mon Sep 17 00:00:00 2001 From: ljf Date: Thu, 5 Sep 2019 00:02:41 +0200 Subject: [PATCH] [wip] Add the permissions view --- src/views/user/user_permission.ms | 142 ++++++++++++++++++++++++++++++ 1 file changed, 142 insertions(+) create mode 100644 src/views/user/user_permission.ms diff --git a/src/views/user/user_permission.ms b/src/views/user/user_permission.ms new file mode 100644 index 00000000..431c80a9 --- /dev/null +++ b/src/views/user/user_permission.ms @@ -0,0 +1,142 @@ +
+ {{t 'home'}} + {{t 'users'}} + {{t 'perm_manage_permissions'}} +
+ +
+ + {{t 'perm_groups_new'}} + +
+ +
+ +
+{{#each groups}} +
+ +
+
+
+
+

{{t 'users'}}

+
+
+ {{#if all_users}} + + {{else}} + {{#each users}} + + + {{.}} + + + + {{t 'delete'}} + + + {{/each}} +
+ + +
+ {{/if}} +
+
+
+
+
+

{{t 'permissions'}}

+
+
+ {{#each permissions}} + {{.}} + + + + {{t 'delete'}} + + + {{/each}} +
+ + +
+
+
+
+
+
+{{/each}} +
+ +
+
+ {{#each users_with_specific_permissions}} +
+
+

{{username}}

+
+
+ {{#each permissions}} + {{.}} + + + + {{t 'delete'}} + + + {{/each}} +
+ + +
+
+
+
+ {{/each}} +
+ + +
+
+
+
+