summaryrefslogtreecommitdiffstats
path: root/modules-available/runmode/templates/module-machine-list.html
blob: 283fb393dce717e1eb95c58c265ccba8ede298b9 (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
<h2>
	{{lang_specialMachinesForMode}}:
	<a href="?do={{module}}">{{modulename}}</a>
</h2>

<form method="post" action="?do=runmode" onsubmit="return confirm('{{lang_confirmDelete}}')">
	<input type="hidden" name="token" value="{{token}}">
	<input type="hidden" name="action" value="delete-machine">
	<table class="table">
		<tr>
			<th>{{lang_machine}}</th>
			<th>{{lang_mode}}</th>
			<th class="slx-smallcol">{{lang_isclient}}</th>
			<th class="slx-smallcol">{{lang_delete}}</th>
		</tr>
		{{#list}}
			<tr>
				<td>
					<div class="slx-bold" title="{{clientip}}"><a
							href="?do=statistics&amp;uuid={{machineuuid}}">{{hostname}}</a></div>
					<div class="small">{{machineuuid}}</div>
				</td>
				<td>
					{{#mode_name}}
						<div>{{mode_name}}</div>
						<div class="small">{{modeid}}</div>
					{{/mode_name}}
					{{^mode_name}}
						<div>{{modeid}}</div>
					{{/mode_name}}
				</td>
				<td class="text-center">
					{{#isclient}}
						<span class="glyphicon glyphicon-check text-success"></span>
					{{/isclient}}
				</td>
				<td class="text-center">
					{{#canedit}}
					<button type="submit" class="btn btn-danger btn-sm" name="machineuuid" value="{{machineuuid}}">
						<span class="glyphicon glyphicon-trash"></span>
					</button>
					{{/canedit}}
					{{#deleteUrl}}
					<a class="btn btn-default btn-sm" href="?do={{module}}&amp;{{deleteUrl}}{{modeid}}">
						<span class="glyphicon glyphicon-edit"></span>
					</a>
					{{/deleteUrl}}
				</td>
			</tr>
		{{/list}}
	</table>
</form>