summaryrefslogtreecommitdiffstats
path: root/modules-available/rebootcontrol/templates/status-wol.html
blob: 3e83126c378ed510bcbe5a8622565fe16f13402a (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
{{#locations}}
<div class="loc">{{name}}</div>
{{/locations}}
<div class="clearfix slx-space"></div>

{{#tasks}}
<div data-tm-id="{{.}}" data-tm-callback="wolCallback">{{lang_aWolJob}}</div>
{{/tasks}}
{{^tasks}}
<div class="alert alert-warning">
	<span class="glyphicon glyphicon-exclamation-sign"></span>
	{{lang_noTasksForJob}}
</div>
{{/tasks}}

<pre>{{log}}</pre>

<table class="table table-hover stupidtable" id="dataTable">
	<thead>
	<tr>
		<th data-sort="string">{{lang_client}}</th>
		<th data-sort="ipv4">{{lang_ip}}</th>
		<th data-sort="string">
			{{lang_status}}
		</th>
	</tr>
	</thead>

	<tbody>
	{{#clients}}
	<tr>
		<td>{{hostname}}{{^hostname}}{{machineuuid}}{{^machineuuid}}{{clientip}}{{/machineuuid}}{{/hostname}}</td>
		<td>{{clientip}}</td>
		{{#machineuuid}}
		<td>
			<span id="status-{{machineuuid}}" class="machineuuid" data-uuid="{{machineuuid}}"></span>
			<span id="spinner-{{machineuuid}}" class="glyphicon glyphicon-refresh slx-rotation">
		</td>
		{{/machineuuid}}
		{{^machineuuid}}
		<td></td>
		{{/machineuuid}}
	</tr>
	{{/clients}}
	</tbody>
</table>

<script><!--
function wolCallback(task) {
	stillActive = true;
}
//--></script>