diff options
author | Udo Walter | 2017-12-07 18:48:00 +0100 |
---|---|---|
committer | Udo Walter | 2017-12-07 18:48:00 +0100 |
commit | a1920b7f3f416e76863690d24de7282917698c09 (patch) | |
tree | 688a9d1ac013985a0bcf09765fa4ce68d0dc1c48 /modules-available/permissionmanager/templates/userstable.html | |
parent | [dozmod] reworked permission system from "click and you get error" to "button... (diff) | |
download | slx-admin-a1920b7f3f416e76863690d24de7282917698c09.tar.gz slx-admin-a1920b7f3f416e76863690d24de7282917698c09.tar.xz slx-admin-a1920b7f3f416e76863690d24de7282917698c09.zip |
[permissionmanager] added support for localized permission descriptions;
moved add/delete buttons to the right; items in the user and locations
table can now be selected by clicking anywhere in the table row;
Diffstat (limited to 'modules-available/permissionmanager/templates/userstable.html')
-rw-r--r-- | modules-available/permissionmanager/templates/userstable.html | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/modules-available/permissionmanager/templates/userstable.html b/modules-available/permissionmanager/templates/userstable.html index bd48d16d..9f684e99 100644 --- a/modules-available/permissionmanager/templates/userstable.html +++ b/modules-available/permissionmanager/templates/userstable.html @@ -3,10 +3,8 @@ <div class="row"> <div class="col-md-4"> - <button class="btn btn-success" type="button" data-toggle="modal" data-target="#addRoleToUserModal"><span class="glyphicon glyphicon-share-alt"></span> {{lang_addRole}}</button> - <button class="btn btn-danger" type="button" data-toggle="modal" data-target="#removeRoleFromUserModal"><span class="glyphicon glyphicon-trash"></span> {{lang_removeRole}}</button> </div> - <div class="col-md-4 text-left"> + <div class="col-md-4"> <select multiple name="roles[]" id="select-role"> <option value>{{lang_selectizePlaceholder}}</option> {{#roles}} @@ -14,6 +12,10 @@ {{/roles}} </select> </div> + <div class="col-md-4 text-right"> + <button class="btn btn-success" type="button" data-toggle="modal" data-target="#addRoleToUserModal"><span class="glyphicon glyphicon-share-alt"></span> {{lang_addRole}}</button> + <button class="btn btn-danger" type="button" data-toggle="modal" data-target="#removeRoleFromUserModal"><span class="glyphicon glyphicon-trash"></span> {{lang_removeRole}}</button> + </div> </div> <div class="row"> @@ -152,6 +154,7 @@ }); }); + // if remove-Role button is clicked, uncheck all checkboxes in add-role modal so they aren't submitted too function clearAddRoleModal () { $('#addRoleToUserModal') |