diff options
author | Simon Rettberg | 2020-05-18 18:40:59 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-05-18 18:40:59 +0200 |
commit | 125fc3e928d3f18ce531a61d505c050d1e2a099b (patch) | |
tree | 97be54b7bf8b6606fa46c96e2c6f463450e9389f /modules-available/remoteaccess/templates/edit-settings.html | |
parent | [default.css] Make labels with disabled class gray (diff) | |
download | slx-admin-125fc3e928d3f18ce531a61d505c050d1e2a099b.tar.gz slx-admin-125fc3e928d3f18ce531a61d505c050d1e2a099b.tar.xz slx-admin-125fc3e928d3f18ce531a61d505c050d1e2a099b.zip |
[remoteaccess] Add permissions, add "delete group" functionality
Diffstat (limited to 'modules-available/remoteaccess/templates/edit-settings.html')
-rw-r--r-- | modules-available/remoteaccess/templates/edit-settings.html | 34 |
1 files changed, 26 insertions, 8 deletions
diff --git a/modules-available/remoteaccess/templates/edit-settings.html b/modules-available/remoteaccess/templates/edit-settings.html index 2712cf04..3c890b91 100644 --- a/modules-available/remoteaccess/templates/edit-settings.html +++ b/modules-available/remoteaccess/templates/edit-settings.html @@ -1,23 +1,38 @@ <h2>{{lang_remoteAccessSettings}}</h2> +<h3>{{lang_general}}</h3> + <form method="post" action="?do=remoteaccess"> <input type="hidden" name="token" value="{{token}}"> <div class="form-group"> <label> {{lang_allowedAccessToVncPort}} - <input type="text" class="form-control" name="allowed-source" value="{{allowed-source}}" required> + <input type="text" class="form-control" name="allowed-source" value="{{allowed-source}}" + required {{perms.set-proxy-ip.disabled}}> </label> <p>{{lang_allowAccessText}}</p> </div> <div class="form-group"> <div class="checkbox"> <input type="checkbox" name="virt-handover" value="1" - id="virt-handover" {{virt-handover_checked}}> + id="virt-handover" {{virt-handover_checked}} {{perms.set-proxy-ip.disabled}}> <label for="virt-handover">{{lang_tryVirtualizerHandover}}</label> </div> <p>{{lang_tryVirtualizerText}}</p> </div> + <div class="buttonbar pull-right"> + <button type="submit" class="btn btn-primary" name="action" value="save-settings" {{perms.set-proxy-ip.disabled}}> + <span class="glyphicon glyphicon-floppy-disk"></span> + {{lang_save}} + </button> + </div> + <div class="clearfix"></div> +</form> + +<h3>{{lang_groups}}</h3> +<form method="post" action="?do=remoteaccess"> + <input type="hidden" name="token" value="{{token}}"> <div class="form-group"> <p>{{lang_groupListText}}</p> <table class="table table-condensed table-hover"> @@ -35,12 +50,13 @@ <td class="slx-smallcol"> <div class="checkbox checkbox-inline"> <input type="checkbox" name="group[{{groupid}}][active]" value="1" id="group-check-{{groupid}}" - {{checked}}> + {{checked}} {{perms.group.edit.disabled}}> <label for="group-check-{{groupid}}"></label> </div> </td> <td class="text-nowrap"> - <input type="text" class="form-control" name="group[{{groupid}}][groupname]" value="{{groupname}}"> + <input type="text" class="form-control" name="group[{{groupid}}][groupname]" value="{{groupname}}" + {{perms.group.edit.disabled}}> </td> <td class="text-right text-nowrap"> <span class="badge">{{locs}}</span> @@ -49,21 +65,23 @@ </a> </td> <td> - <input type="number" class="form-control" name="group[{{groupid}}][wolcount]" value="{{wolcount}}"> + <input type="number" class="form-control" name="group[{{groupid}}][wolcount]" value="{{wolcount}}" + {{perms.group.edit.disabled}}> </td> <td> - <input type="text" class="form-control" name="group[{{groupid}}][passwd]" value="{{passwd}}"> + <input type="text" class="form-control" name="group[{{groupid}}][passwd]" value="{{passwd}}" + {{perms.group.edit.disabled}}> </td> </tr> {{/groups}} </table> </div> <div class="buttonbar pull-right"> - <button type="submit" class="btn btn-success" name="action" value="add-group"> + <button type="submit" class="btn btn-success" name="action" value="add-group" {{perms.group.add.disabled}}> <span class="glyphicon glyphicon-plus"></span> {{lang_add}} </button> - <button type="submit" class="btn btn-primary" name="action" value="save-settings"> + <button type="submit" class="btn btn-primary" name="action" value="save-groups" {{perms.group.edit.disabled}}> <span class="glyphicon glyphicon-floppy-disk"></span> {{lang_save}} </button> |