diff options
author | Simon Rettberg | 2018-03-04 16:41:50 +0100 |
---|---|---|
committer | Simon Rettberg | 2018-03-04 16:41:50 +0100 |
commit | c6744aac063482c4c48ed3a98d5cd8857e1261e6 (patch) | |
tree | 38f04b234810ddcf5534e6d40277dd64d1f18f35 /modules-available/sysconfig/templates/list-configs.html | |
parent | [roomplanner] Add permissions (diff) | |
download | slx-admin-c6744aac063482c4c48ed3a98d5cd8857e1261e6.tar.gz slx-admin-c6744aac063482c4c48ed3a98d5cd8857e1261e6.tar.xz slx-admin-c6744aac063482c4c48ed3a98d5cd8857e1261e6.zip |
[sysconfig] Add permissions
Diffstat (limited to 'modules-available/sysconfig/templates/list-configs.html')
-rw-r--r-- | modules-available/sysconfig/templates/list-configs.html | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/modules-available/sysconfig/templates/list-configs.html b/modules-available/sysconfig/templates/list-configs.html index 205317b8..4db7b9b2 100644 --- a/modules-available/sysconfig/templates/list-configs.html +++ b/modules-available/sysconfig/templates/list-configs.html @@ -26,7 +26,7 @@ </td> <td> {{^current}} - <button class="btn btn-primary btn-xs" name="activate" value="{{configid}}"> + <button class="btn btn-primary btn-xs" name="activate" value="{{configid}}" {{perms.config.assign.disabled}}> <span class="glyphicon glyphicon-flag"></span> {{lang_activate}} </button> @@ -54,13 +54,22 @@ {{^needrebuild}} class="refconf btn btn-default btn-xs" {{/needrebuild}} - name="rebuild" value="{{configid}}" title="{{lang_rebuild}}"><span class="glyphicon glyphicon-refresh"></span></button> + name="rebuild" value="{{configid}}" title="{{lang_rebuild}}" + {{perms.config.edit.disabled}}> + <span class="glyphicon glyphicon-refresh"></span> + </button> {{/locationid}} </td> <td class="text-nowrap"> {{^locationid}} - <a class="btn btn-success btn-xs" href="?do=SysConfig&action=addconfig&edit={{configid}}" title="{{lang_edit}}"><span class="glyphicon glyphicon-edit"></span></a> - <button class="btn btn-danger btn-xs confirm-delete" name="del" value="{{configid}}" title="{{lang_delete}}"><span class="glyphicon glyphicon-trash"></span></button> + <a class="btn btn-success btn-xs {{perms.config.edit.disabled}}" + href="?do=SysConfig&action=addconfig&edit={{configid}}" title="{{lang_edit}}"> + <span class="glyphicon glyphicon-edit"></span> + </a> + <button class="btn btn-danger btn-xs confirm-delete" name="del" value="{{configid}}" + title="{{lang_delete}}" {{perms.config.edit.disabled}}> + <span class="glyphicon glyphicon-trash"></span> + </button> {{/locationid}} </td> </tr> @@ -101,7 +110,9 @@ </div> {{^locationid}} <div class="panel-footer text-right"> - <a class="btn btn-primary" href="?do=SysConfig&action=addconfig">{{lang_newConfiguration}}</a> + <a class="btn btn-primary {{perms.config.edit.disabled}}" href="?do=SysConfig&action=addconfig"> + {{lang_newConfiguration}} + </a> </div> {{/locationid}} </div> |