summaryrefslogtreecommitdiffstats
path: root/modules-available/rebootcontrol/templates/subnet-list.html
blob: 2bc9208fe73c0e7b5d5c6b3e6a2937e1ce020be3 (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
<h2>{{lang_wolReachability}}</h2>

<h3>{{lang_subnets}}</h3>

<p>{{lang_subnetsDescription}}</p>

<p>{{lang_wolMachineSupportText}}</p>

<table class="table">
	<thead>
	<tr>
		<th>{{lang_subnet}}</th>
		<th class="slx-smallcol">{{lang_isFixed}}</th>
		<th class="slx-smallcol">{{lang_isDirect}}</th>
		<th class="slx-smallcol">{{lang_wolReachability}}</th>
		<th class="slx-smallcol">{{lang_lastseen}}</th>
	</tr>
	</thead>
	<tbody>
	{{#subnets}}
	<tr>
		<td>
			<div style="display: inline-block; min-width: 10em">
			<a href="?do=rebootcontrol&amp;show=subnet&amp;what=subnet&amp;id={{subnetid}}">{{cidr}}</a>
			</div>
			<a href="?do=statistics&amp;show=list&amp;filters=clientip={{cidr}}" class="btn btn-default btn-xs">
				<span class="glyphicon glyphicon-eye-open"></span>
			</a>
		</td>
		<td class="text-center">{{#fixed}}<span class="glyphicon glyphicon-lock"></span>{{/fixed}}</td>
		<td class="text-center">{{#isdirect}}<span class="glyphicon glyphicon-ok"></span>{{/isdirect}}</td>
		<td class="text-right"><span class="badge">{{jumphostcount}}</span> / <span class="badge">{{sourcecount}}</span></td>
		<td class="{{lastseen_class}} text-nowrap">{{lastseen_s}}</td>
	</tr>
	{{/subnets}}
	</tbody>
</table>

<div class="panel panel-default">
	<div class="panel-heading">
		{{lang_help}}
	</div>
	<div class="panel-body">
		<p>
			<b>{{lang_isFixed}}</b>:
			{{lang_isFixedHelp}}
		</p>
		<p>
			<b>{{lang_isDirect}}</b>:
			{{lang_isDirectHelp}}
		</p>
		<p>
			<b>{{lang_wolReachability}}</b>:
			{{lang_wolReachabilityHelp}}
		</p>
	</div>
</div>

<form method="post" action="?do=rebootcontrol">
	<input type="hidden" name="token" value="{{token}}">
	<input type="hidden" name="show" value="subnet">
	<div class="list-group">
		<div class="list-group-item">
			<label>{{lang_addNewSubnet}}</label>
			<div class="row">
				<div class="col-md-4 col-sm-6">
					<input class="form-control" type="text" name="cidr" placeholder="1.2.3.0/24">
				</div>
				<div class="col-md-4 col-sm-6">
					<button class="btn btn-primary" name="action" value="add">
						<span class="glyphicon glyphicon-floppy-disk"></span>
						{{lang_add}}
					</button>
				</div>
			</div>
		</div>
	</div>
</form>