summaryrefslogtreecommitdiffstats
path: root/modules-available/remoteaccess/templates/edit-settings.html
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/remoteaccess/templates/edit-settings.html')
-rw-r--r--modules-available/remoteaccess/templates/edit-settings.html142
1 files changed, 142 insertions, 0 deletions
diff --git a/modules-available/remoteaccess/templates/edit-settings.html b/modules-available/remoteaccess/templates/edit-settings.html
new file mode 100644
index 00000000..4c4c011a
--- /dev/null
+++ b/modules-available/remoteaccess/templates/edit-settings.html
@@ -0,0 +1,142 @@
+<h2>{{lang_remoteAccessSettings}}</h2>
+
+<h3>{{lang_general}}</h3>
+
+<form method="post" action="?do=remoteaccess">
+ <input type="hidden" name="token" value="{{token}}">
+ <div class="row">
+ <div class="form-group col-md-6">
+ <label>
+ {{lang_allowedAccessToVncPort}}
+ <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 col-md-6">
+ <label>
+ {{lang_clientVncPort}}
+ <input type="number" class="form-control" name="vncport" value="{{vncport}}" min="1025" max="65535"
+ required {{perms.set-proxy-ip.disabled}}>
+ </label>
+ <p>{{lang_vncPortText}}</p>
+ <div class="text-right">
+ {{lang_pluginVersion}}: {{plugin_version}}
+ {{^plugin_version}}
+ {{lang_pluginVersionOldOrUnknown}}
+ {{/plugin_version}}
+ </div>
+ </div>
+ </div>
+ <div class="form-group">
+ <div class="checkbox">
+ <input type="checkbox" name="virt-handover" value="1"
+ 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">
+ <thead>
+ <tr>
+ <th></th>
+ <th>{{lang_group}}</th>
+ <th class="text-nowrap" width="10%">{{lang_numLocs}}</th>
+ <th class="text-nowrap" width="10%">{{lang_keepAvailableWol}}</th>
+ <th class="text-nowrap" width="13%">{{lang_password}}</th>
+ </tr>
+ </thead>
+ {{#groups}}
+ <tr>
+ <td class="slx-smallcol">
+ <div class="checkbox checkbox-inline">
+ <input type="checkbox" name="group[{{groupid}}][active]" value="1" id="group-check-{{groupid}}"
+ {{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}}"
+ {{perms.group.edit.disabled}}>
+ </td>
+ <td class="text-right text-nowrap">
+ <span class="badge">{{locs}}</span>
+ <a href="?do=remoteaccess&amp;groupid={{groupid}}" class="btn btn-xs btn-default">
+ <span class="glyphicon glyphicon-edit"></span>
+ </a>
+ </td>
+ <td class="input-group">
+ <input type="number" class="form-control" name="group[{{groupid}}][wolcount]" value="{{wolcount}}"
+ {{perms.group.edit.disabled}}>
+ {{#unwoken}}
+ <span class="input-group-addon" title="{{lang_wolFailCount}}">
+ <span class="glyphicon glyphicon-remove"></span>{{unwoken}}
+ </span>
+ {{/unwoken}}
+ </td>
+ <td>
+ <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" {{perms.group.add.disabled}}>
+ <span class="glyphicon glyphicon-plus"></span>
+ {{lang_add}}
+ </button>
+ <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>
+ </div>
+ <div class="clearfix"></div>
+</form>
+
+<h3>{{lang_locations}}</h3>
+
+<p>{{lang_locationsInUse}}</p>
+
+<table class="table">
+ <thead>
+ <tr>
+ <th>{{lang_location}}</th>
+ <th>{{lang_groups}}</th>
+ </tr>
+ </thead>
+ <tbody>
+ {{#locations}}
+ <tr>
+ <td class="{{lclass}}">
+ {{locationname}}
+ {{#ra_never}}
+ <span class="glyphicon glyphicon-remove text-danger" title="{{lang_roomRemoteAccessDisabled}}"></span>
+ {{/ra_never}}
+ {{#ra_selective}}
+ <span class="glyphicon glyphicon-time text-danger" title="{{lang_roomRemoteAccessWhenClosed}}"></span>
+ {{/ra_selective}}
+ </td>
+ <td>{{#groups}}
+ [<a class="{{gclass}}" href="?do=remoteaccess&amp;groupid={{groupid}}">{{groupname}}</a>]
+ {{/groups}}</td>
+ </tr>
+ {{/locations}}
+ </tbody>
+</table> \ No newline at end of file