summaryrefslogtreecommitdiffstats
path: root/modules-available/remoteaccess/templates/edit-settings.html
blob: 2712cf04d26e6d0281c317f0a8a86c5beacbae2a (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
<h2>{{lang_remoteAccessSettings}}</h2>

<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>
		</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}}>
			<label for="virt-handover">{{lang_tryVirtualizerHandover}}</label>
		</div>
		<p>{{lang_tryVirtualizerText}}</p>
	</div>

	<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}}>
						<label for="group-check-{{groupid}}"></label>
					</div>
				</td>
				<td class="text-nowrap">
					<input type="text" class="form-control" name="group[{{groupid}}][groupname]" value="{{groupname}}">
				</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>
					<input type="number" class="form-control" name="group[{{groupid}}][wolcount]" value="{{wolcount}}">
				</td>
				<td>
					<input type="text" class="form-control" name="group[{{groupid}}][passwd]" value="{{passwd}}">
				</td>
			</tr>
			{{/groups}}
		</table>
	</div>
	<div class="buttonbar pull-right">
		<button type="submit" class="btn btn-success" name="action" value="add-group">
			<span class="glyphicon glyphicon-plus"></span>
			{{lang_add}}
		</button>
		<button type="submit" class="btn btn-primary" name="action" value="save-settings">
			<span class="glyphicon glyphicon-floppy-disk"></span>
			{{lang_save}}
		</button>
	</div>
	<div class="clearfix"></div>
</form>