diff options
author | Simon Rettberg | 2018-03-05 14:17:36 +0100 |
---|---|---|
committer | Simon Rettberg | 2018-03-05 14:17:36 +0100 |
commit | da8870e85f59dc8e83d2c4f50432f688080cb1d1 (patch) | |
tree | a36e939019e32ae8954137c02334bcf4b332f170 /modules-available/locationinfo/templates | |
parent | [locationinfo] Add permission entry to runmode config (diff) | |
download | slx-admin-da8870e85f59dc8e83d2c4f50432f688080cb1d1.tar.gz slx-admin-da8870e85f59dc8e83d2c4f50432f688080cb1d1.tar.xz slx-admin-da8870e85f59dc8e83d2c4f50432f688080cb1d1.zip |
[locationinfo] Add permissions
Diffstat (limited to 'modules-available/locationinfo/templates')
4 files changed, 17 insertions, 10 deletions
diff --git a/modules-available/locationinfo/templates/page-locations.html b/modules-available/locationinfo/templates/page-locations.html index 37d8dd96..94c4cd40 100644 --- a/modules-available/locationinfo/templates/page-locations.html +++ b/modules-available/locationinfo/templates/page-locations.html @@ -17,10 +17,14 @@ <tr> <td> <div style="display:inline-block;width:{{depth}}em"></div> + {{#allowed}} <a href="#" class="loc-name {{^depth}}slx-bold{{/depth}}" data-locationid="{{locationid}}"> + {{/allowed}} {{locationname}} + {{#allowed}} <span class="glyphicon glyphicon-edit"></span> </a> + {{/allowed}} </td> <td {{#backendMissing}}class="text-danger"{{/backendMissing}}> {{backend}} diff --git a/modules-available/locationinfo/templates/page-panels.html b/modules-available/locationinfo/templates/page-panels.html index e17b6584..2bccc796 100644 --- a/modules-available/locationinfo/templates/page-panels.html +++ b/modules-available/locationinfo/templates/page-panels.html @@ -34,19 +34,21 @@ </td> {{#hasRunmode}} <td> - <a class="btn btn-default btn-xs" href="?do=runmode&module=locationinfo&modeid={{paneluuid}}&redirect=?do=locationinfo"> + <a class="btn btn-default btn-xs {{runmode_disabled}}" + href="?do=runmode&module=locationinfo&modeid={{paneluuid}}&redirect=?do=locationinfo"> <span class="glyphicon glyphicon-edit"></span> </a> {{assignedMachineCount}} </td> {{/hasRunmode}} <td> - <a class="btn btn-default btn-xs" href="?do=locationinfo&show=edit-panel&uuid={{paneluuid}}"> + <a class="btn btn-default btn-xs {{edit_disabled}}" + href="?do=locationinfo&show=edit-panel&uuid={{paneluuid}}"> <span class="glyphicon glyphicon-cog"></span> </a> </td> <td> - <button type="submit" name="uuid" value="{{paneluuid}}" class="btn btn-danger btn-xs"> + <button type="submit" name="uuid" value="{{paneluuid}}" class="btn btn-danger btn-xs" {{edit_disabled}}> <span class="glyphicon glyphicon-trash"></span> </button> </td> diff --git a/modules-available/locationinfo/templates/page-servers.html b/modules-available/locationinfo/templates/page-servers.html index dbf18b5f..3edb0e66 100644 --- a/modules-available/locationinfo/templates/page-servers.html +++ b/modules-available/locationinfo/templates/page-servers.html @@ -22,18 +22,19 @@ <td align="center" nowrap> <button class="btn btn-xs {{^autherror}}btn-default{{/autherror}}{{#autherror}}btn-danger{{/autherror}}" - data-server-edit="{{serverid}}" {{disabled}} type="button"> + data-server-edit="{{serverid}}" {{disabled}} {{perms.backend.edit.disabled}} type="button"> <span class="glyphicon glyphicon-cog"></span> {{lang_edit}} </button> - <button class="btn btn-xs btn-primary server-check" {{disabled}} name="action" value="checkConnection" - type="submit"> + <button class="btn btn-xs btn-primary server-check" {{disabled}} {{perms.backend.check.disabled}} + name="action" value="checkConnection" type="submit"> <span class="glyphicon glyphicon-refresh"></span> {{lang_checkConnection}} </button> </td> <td align="center" nowrap> - <button class="btn btn-xs btn-danger server-delete" type="submit" name="action" value="deleteServer"> + <button class="btn btn-xs btn-danger server-delete" type="submit" name="action" value="deleteServer" + {{perms.backend.edit.disabled}}> <span class="glyphicon glyphicon-trash"></span> {{lang_delete}} </button> diff --git a/modules-available/locationinfo/templates/page-tabs.html b/modules-available/locationinfo/templates/page-tabs.html index ed3f01fd..743297e7 100644 --- a/modules-available/locationinfo/templates/page-tabs.html +++ b/modules-available/locationinfo/templates/page-tabs.html @@ -1,6 +1,6 @@ <ul class="nav nav-tabs"> - <li class="{{class-}}"><a href="?do=locationinfo">{{lang_panels}}</a></li> - <li class="{{class-locations}}"><a href="?do=locationinfo&show=locations">{{lang_locationSettings}}</a></li> - <li class="{{class-backends}}"><a href="?do=locationinfo&show=backends">{{lang_backends}}</a></li> + <li class="{{class-panels}} {{perms.panel.list.disabled}}"><a href="?do=locationinfo&show=panels">{{lang_panels}}</a></li> + <li class="{{class-locations}} {{perms.location.disabled}}"><a href="?do=locationinfo&show=locations">{{lang_locationSettings}}</a></li> + <li class="{{class-backends}} {{perms.backend.disabled}}"><a href="?do=locationinfo&show=backends">{{lang_backends}}</a></li> </ul> <br>
\ No newline at end of file |