summaryrefslogtreecommitdiffstats
path: root/modules-available/remoteaccess/templates/edit-settings.html
blob: 4c4c011acf758495c11ace03381c37735e89c421 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
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>