summaryrefslogtreecommitdiffstats
path: root/modules-available/sysconfig/templates/list-configs.html
blob: 4db7b9b27bc33858eddef343179d89862d295925 (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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
{{#locationid}}
<div class="col-md-12">
	<h1>{{locationname}}</h1>
	<div class="alert alert-info">
		<span class="glyphicon glyphicon-exclamation-sign"></span>
		{{lang_editingLocationInfo}}
	</div>
</div>
{{/locationid}}
<div class="col-md-6">
	<div class="panel panel-default">
		<div class="panel-heading">
			{{lang_availableSystem}}
			<a class="btn btn-default" data-toggle="modal" data-target="#help-config"><span class="glyphicon glyphicon-question-sign"></span></a>
		</div>
		<div class="panel-body">
			<form method="post" action="?do=SysConfig">
				<input type="hidden" name="token" value="{{token}}">
				<input type="hidden" name="action" value="config">
				<input type="hidden" name="locationid" value="{{locationid}}">
				<table id="conftable" class="slx-table table-hover" style="width:100%">
					{{#configs}}
					<tr>
						<td data-id="{{configid}}" data-modlist="{{modlist}}" class="confrow slx-pointer" width="100%">
							<table class="slx-ellipsis"><tr><td>{{config}}</td></tr></table>
						</td>
						<td>
							{{^current}}
							<button class="btn btn-primary btn-xs" name="activate" value="{{configid}}" {{perms.config.assign.disabled}}>
								<span class="glyphicon glyphicon-flag"></span>
								{{lang_activate}}
							</button>
							{{/current}}
							{{#current}}
								<span class="btn btn-success btn-xs slx-nopointer">
									<span class="glyphicon glyphicon-ok"></span>
									{{lang_active}}
								</span>
							{{/current}}
						</td>
						<td>
							{{#locationCount}}
							<span class="badge" {{#readableLocList}} data-toggle="tooltip" data-placement="top" title="{{readableLocList}}" {{/readableLocList}} >
							+{{locationCount}}
							</span>
							{{/locationCount}}
						</td>
						<td class="text-nowrap">
							{{^locationid}}
							<button
									{{#needrebuild}}
									class="refconf btn btn-primary btn-xs"
									{{/needrebuild}}
							{{^needrebuild}}
							class="refconf btn btn-default btn-xs"
							{{/needrebuild}}
							name="rebuild" value="{{configid}}" title="{{lang_rebuild}}"
							{{perms.config.edit.disabled}}>
								<span class="glyphicon glyphicon-refresh"></span>
							</button>
							{{/locationid}}
						</td>
						<td class="text-nowrap">
							{{^locationid}}
							<a class="btn btn-success btn-xs {{perms.config.edit.disabled}}"
										href="?do=SysConfig&amp;action=addconfig&amp;edit={{configid}}" title="{{lang_edit}}">
								<span class="glyphicon glyphicon-edit"></span>
							</a>
							<button class="btn btn-danger btn-xs confirm-delete" name="del" value="{{configid}}"
										title="{{lang_delete}}" {{perms.config.edit.disabled}}>
								<span class="glyphicon glyphicon-trash"></span>
							</button>
							{{/locationid}}
						</td>
					</tr>
					{{/configs}}
					{{#locationid}}
					<tr>
						<td><table class="slx-ellipsis"><tr><td><i>{{lang_inheritFromParentLoc}}</i></td></tr></table></td>
						<td>
							{{^inheritConfig}}
							<button class="btn btn-info btn-xs" name="activate" value="0">
								<span class="glyphicon glyphicon-flag"></span>
								{{lang_activate}}
							</button>
							{{/inheritConfig}}
							{{#inheritConfig}}
								<span class="btn btn-success btn-xs slx-nopointer">
									<span class="glyphicon glyphicon-ok"></span>
									{{lang_active}}
								</span>
							{{/inheritConfig}}
						</td>
						<td></td>
						<td></td>
					</tr>
					{{/locationid}}
				</table>
				{{^configs}}
				<div class="alert alert-warning">
					{{lang_systemConfigurationNotFound}}
				</div>
				{{^modules}}
				<div class="alert alert-danger">
					{{lang_systemConfigurationAlert}}
				</div>
				{{/modules}}
				{{/configs}}
			</form>
		</div>
		{{^locationid}}
		<div class="panel-footer text-right">
			<a class="btn btn-primary {{perms.config.edit.disabled}}" href="?do=SysConfig&amp;action=addconfig">
				{{lang_newConfiguration}}
			</a>
		</div>
		{{/locationid}}
	</div>

	<div class="modal fade" id="help-config" tabindex="-1" role="dialog">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">&times;</button>
					<h4 class="modal-title"><b>{{lang_systemConfiguration}}</b></h4>
				</div>
				<div class="modal-body">
					{{lang_helpSystemConfiguration}}
				</div>
			</div>
		</div>
	</div>

</div>