summaryrefslogtreecommitdiffstats
path: root/modules-available/rebootcontrol/templates/jumphost-list.html
blob: 6023c87264c817aed325fb799254019d66fa449b (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
<h2>{{lang_settings}}</h2>

<h3>{{lang_wolReachability}}</h3>

<h4>{{lang_jumpHosts}}</h4>

<form method="post" action="?do=rebootcontrol">
	<input type="hidden" name="token" value="{{token}}">
	<input type="hidden" name="show" value="jumphost">
	<input type="hidden" name="action" value="list">
	<table class="table">
		<thead>
		<tr>
			<th>{{lang_host}}</th>
			<th class="slx-smallcol">{{lang_numAssignedSubnets}}</th>
			<th class="slx-smallcol">{{lang_reachable}}</th>
			<th class="slx-smallcol"></th>
		</tr>
		</thead>
		<tbody>
		{{#jumpHosts}}
		<tr>
			<td>{{host}}:{{port}}</td>
			<td class="text-nowrap text-right">
				<a class="btn btn-xs btn-default {{perms.jumphost.assign-subnet.disabled}}"
					href="?do=rebootcontrol&amp;show=jumphost&amp;what=assign&amp;id={{hostid}}">
					<span class="glyphicon glyphicon-tasks"></span>
				</a>
				<span class="badge">{{subnetCount}}</span>
			</td>
			<td class="text-nowrap text-center">
				{{#reachable}}
				<span class="glyphicon glyphicon-ok text-success"></span>
				{{/reachable}}
				{{^reachable}}
				<span class="glyphicon glyphicon-remove text-danger"></span>
				{{/reachable}}
				<button class="btn btn-xs btn-default btn-check-jumphost" type="submit" name="checkid" value="{{hostid}}"
						  {{perms.jumphost.edit.disabled}}>
					{{lang_check}}
				</button>
			</td>
			<td class="text-nowrap text-center">
				<a class="btn btn-xs btn-default {{perms.jumphost.edit.disabled}}"
					href="?do=rebootcontrol&amp;show=jumphost&amp;what=edit&amp;id={{hostid}}">
					<span class="glyphicon glyphicon-edit"></span>
				</a>
				<button type="submit" name="deleteid" value="{{hostid}}" class="btn btn-xs btn-danger"
						  data-confirm="#confirm-delete-host" data-title="{{host}}" {{perms.jumphost.edit.disabled}}>
					<span class="glyphicon glyphicon-trash"></span>
				</button>
			</td>
		</tr>
		{{/jumpHosts}}
		</tbody>
	</table>
</form>
<div class="buttonbar text-right">
	<a class="btn btn-success" href="?do=rebootcontrol&amp;show=jumphost&amp;what=edit&amp;id=new">
		<span class="glyphicon glyphicon-plus"></span>
		{{lang_new}}
	</a>
</div>

<div class="hidden" id="confirm-delete-host">{{lang_hostDeleteConfirm}}</div>