summaryrefslogtreecommitdiffstats
path: root/modules-available/dozmod/templates/runscripts-list.html
blob: 21cb98354da0f9eff1a536d923773aef966badac (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
<h1>{{lang_scriptsHead}}</h1>

<p>
	{{lang_scriptsIntro}}
</p>

<form method="post" action="?do=dozmod&amp;section=runscripts">
	<input type="hidden" name="token" value="{{token}}">
	<input type="hidden" name="action" value="delete">
	<table class="table">
		<thead>
		<tr>
			<th>{{lang_name}}</th>
			<th class="slx-smallcol">{{lang_scriptExtensionHead}}</th>
			<th class="slx-smallcol">{{lang_scriptVisibilityHead}}</th>
			<th class="slx-smallcol">{{lang_scriptPassCredentialsHead}}</th>
			<th class="slx-smallcol">{{lang_scriptIsGlobalHead}}</th>
			{{#hasEditPermission}}
				<th class="slx-smallcol">{{lang_edit}}</th>
				<th class="slx-smallcol">{{lang_delete}}</th>
			{{/hasEditPermission}}
		</tr>
		</thead>
		<tbody>
		{{#list}}
			<tr>
				<td>{{scriptname}}</td>
				<td>.{{extension}}</td>
				<td><span class="glyphicon glyphicon-{{visibility}}"></span></td>
				<td>
					{{#passcreds}}
						<span class="glyphicon glyphicon-ok"></span>
					{{/passcreds}}
				</td>
				<td>
					{{#isglobal}}
						<span class="glyphicon glyphicon-ok"></span>
					{{/isglobal}}
				</td>
				{{#hasEditPermission}}
					<td class="text-center">
						<a class="btn btn-xs btn-primary" href="?do=dozmod&amp;section=runscripts&amp;show=edit&amp;runscriptid={{runscriptid}}">
							<span class="glyphicon glyphicon-edit"></span>
						</a>
					</td>
					<td class="text-center">
						<button type="submit" name="runscriptid" value="{{runscriptid}}" class="btn btn-xs btn-danger"
								  data-confirm="#confirm-delete" data-title="{{scriptname}}">
							<span class="glyphicon glyphicon-trash"></span>
						</button>
					</td>
				{{/hasEditPermission}}
			</tr>
		{{/list}}
		</tbody>
	</table>
</form>
<div class="hidden" id="confirm-delete">{{lang_runScriptDeleteConfirmation}}</div>

{{#hasEditPermission}}
	<div class="text-right">
		<a class="btn btn-sm btn-success" href="?do=dozmod&amp;section=runscripts&amp;show=edit&amp;runscriptid=0">
			<span class="glyphicon glyphicon-plus"></span>
			{{lang_runScriptAdd}}
		</a>
	</div>
{{/hasEditPermission}}