diff options
author | Simon Rettberg | 2018-02-12 14:17:07 +0100 |
---|---|---|
committer | Simon Rettberg | 2018-02-12 14:17:07 +0100 |
commit | a8b0095b335780ae0bb950bc44021215d43a6b2d (patch) | |
tree | 08b61723fe4facaa6956730f02fa5ede250d9cc6 /modules-available/permissionmanager/templates/treenode.html | |
parent | [backup] Use permission helpers (diff) | |
download | slx-admin-a8b0095b335780ae0bb950bc44021215d43a6b2d.tar.gz slx-admin-a8b0095b335780ae0bb950bc44021215d43a6b2d.tar.xz slx-admin-a8b0095b335780ae0bb950bc44021215d43a6b2d.zip |
[permissionmanager] Introduce "location-aware" flag for permissions
This flag tells wether the permission can be restricted to certain
locations in a meaningful way. This flag has to be set in the
permissions.json of the according module.
For example, the permission to reboot the server cannot be limited
to certain locations in a meaningful way, while the view of the
client log can be filtered to only show log entries for clients
in specific locations.
Diffstat (limited to 'modules-available/permissionmanager/templates/treenode.html')
-rw-r--r-- | modules-available/permissionmanager/templates/treenode.html | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/modules-available/permissionmanager/templates/treenode.html b/modules-available/permissionmanager/templates/treenode.html index ced973ca..43509237 100644 --- a/modules-available/permissionmanager/templates/treenode.html +++ b/modules-available/permissionmanager/templates/treenode.html @@ -1,11 +1,14 @@ {{#toplevel}}<ul>{{/toplevel}} - <li title="{{description}}" data-toggle="tooltip" data-placement="left"> - <div class='checkbox'> - <input id="{{id}}" name="{{checkboxname}}[]" value="{{id}}" type="checkbox" class="form-control" {{#selected}}checked{{/selected}}> - <label for="{{id}}">{{#toplevel}}<b>{{/toplevel}}{{name}}{{#toplevel}}</b>{{/toplevel}}</label> - </div> - <ul> - {{{HTML}}} - </ul> - </li> -{{#toplevel}}</ul>{{/toplevel}} +<li title="{{description}}" data-toggle="tooltip" data-placement="left"> + <div class='checkbox'> + <input id="{{id}}" name="{{checkboxname}}[]" value="{{id}}" type="checkbox" class="form-control" {{#selected}}checked{{/selected}}> + <label for="{{id}}"> + {{name}} + {{#location-aware}}<span class="glyphicon glyphicon-home text-muted"></span>{{/location-aware}} + </label> + </div> + <ul> + {{{HTML}}} + </ul> +</li> +{{#toplevel}}</ul>{{/toplevel}}
\ No newline at end of file |