summaryrefslogtreecommitdiffstats
path: root/modules-available/remoteaccess/templates/edit-settings.html
blob: 8f0572320a7d9059c561c9b3b3c6acce6844f877 (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
<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>
	</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>
					<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}}"
							 {{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>