aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/permcats.tpl
blob: 2799030485d1216bdd364d65594b7f2636da8e30 (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
<div class="generic-content-wrapper">
	<div class="section-title-wrapper">
		<h2>{{$title}}</h2>
		<div class="clear"></div>
	</div>
	<div class="section-content-tools-wrapper">
		<form action="permcats" id="settings-permcats-form" method="post" autocomplete="off" >
			<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
			<input type="hidden" name="return_path" value="{{$return_path}}">

			{{if $is_system_role}}
			<input type="hidden" name="is_system_role" value="1">
			<input type="hidden" name="name" value="{{$is_system_role}}">
			{{/if}}

			{{include file="field_input.tpl" field=$name}}
			{{include file="field_checkbox.tpl" field=$default_role}}

			{{$group_select}}

			<div class="section-subtitle-wrapper" id="perms-tool">
				<h3>
					{{$permlbl}}
				</h3>
			</div>
			<div class="section-content-warning-wrapper">
			{{$permnote}}
			</div>
			<table id="" class="table table-hover">
				{{foreach $perms as $prm}}
				{{include file="field_acheckbox.tpl" field=$prm}}
				{{/foreach}}
			</table>
			<div class="settings-submit-wrapper" >
				<button type="submit" name="submit" class="btn btn-primary">{{$submit}}</button>
			</div>
			{{**if $permcats}}
			<table id="permcat-index">
			{{foreach $permcats as $k => $v}}
			<tr class="permcat-row-{{$k}}">
				<td width="99%"><a href="permcats/{{$k}}">{{$v}}</a></td>
				<td width="1%"><i class="fa fa-trash-o drop-icons" onClick="dropItem('permcats/{{$k}}/drop', '.permcat-row-{{$k}}')"></i></td>
			</tr>
			{{/foreach}}
			</table>
			{{/if**}}

		</form>
	</div>
</div>