blob: 3c4ed2ffec990589fb332434776f1dbc22f6fd8d (
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
|
<form id="contact-edit-form" action="contactedit/{{$contact_id}}" method="post" >
<div id="contact-edit-tools" class="panel-group" role="tablist" >
<div class="panel">
<div class="section-subtitle-wrapper" role="tab" id="roles-tool">
<h3>
<a class="section" data-bs-toggle="collapse" data-bs-target="#roles-tool-collapse" href="#" aria-expanded="true" aria-controls="roles-tool-collapse" data-section="roles">
Roles
</a>
</h3>
</div>
<div id="roles-tool-collapse" class="panel-collapse collapse{{if $section == 'roles'}} show{{/if}}" role="tabpanel" aria-labelledby="roles-tool" data-bs-parent="#contact-edit-tools">
<div class="section-content-tools-wrapper">
{{include file="field_select.tpl" field=$permcat}}
<button class="btn btn-outline-secondary btn-sm float-end sub_section{{if $sub_section == 'perms'}} sub_section_active{{/if}}" type="button" onclick="openClose('perms-table', 'table')" data-section="perms">
Compare permissions
</button>
<a href="permcats/{{$permcat_value}}" class="btn btn-sm btn-outline-primary">
<i class="fa fa-external-link"></i> {{$permcat_new}}
</a>
<table id="perms-table" class="table table-hover table-sm mt-3" style="display: {{if $sub_section == 'perms'}}table{{else}}none{{/if}};">
<thead>
<tr class="w-100">
<th scope="col">Permission</th>
<th scope="col">{{$them}}</th>
<th scope="col">{{$me}}</th>
</tr>
</thead>
<tbody>
{{foreach $perms as $perm}}
<tr>
<td>{{$perm.1}}</td>
<td>
{{if $perm.2}}
<i class="fa fa-check text-success"></i>
{{else}}
<i class="fa fa-times text-danger"></i>
{{/if}}
</td>
<td>
{{if $perm.3}}
<i class="fa fa-check text-success"></i>
{{else}}
<i class="fa fa-times text-danger"></i>
{{/if}}
</td>
</tr>
{{/foreach}}
</tbody>
</table>
</div>
</div>
</div>
{{if $groups}}
<div class="panel">
<div class="section-subtitle-wrapper" role="tab" id="group-tool">
<h3>
<a class="section" data-bs-toggle="collapse" data-bs-target="#group-tool-collapse" href="#" aria-expanded="true" aria-controls="group-tool-collapse" data-section="group">
Privacy groups
</a>
</h3>
</div>
<div id="group-tool-collapse" class="panel-collapse collapse{{if $section == 'group'}} show{{/if}}" role="tabpanel" aria-labelledby="group-tool" data-bs-parent="#contact-edit-tools">
<div class="section-content-tools-wrapper clearfix">
{{foreach $groups as $group}}
{{include file="field_checkbox.tpl" field=$group}}
{{/foreach}}
<a href="group/new" class="btn btn-sm btn-outline-primary">
<i class="fa fa-external-link"></i> Privacy groups
</a>
</div>
</div>
</div>
{{/if}}
{{if $multiprofs}}
<div class="panel">
<div class="section-subtitle-wrapper" role="tab" id="profile-tool">
<h3>
<a class="section" data-bs-toggle="collapse" data-bs-target="#profile-tool-collapse" href="#" aria-expanded="true" aria-controls="profile-tool-collapse" data-section="profile">
Profiles
</a>
</h3>
</div>
<div id="profile-tool-collapse" class="panel-collapse collapse{{if $section == 'profile'}} show{{/if}}" role="tabpanel" aria-labelledby="profile-tool" data-bs-parent="#contact-edit-tools">
<div class="section-content-tools-wrapper">
{{$profile_select}}
<a href="profiles" class="btn btn-sm btn-outline-primary">
<i class="fa fa-external-link"></i> Profiles
</a>
</div>
</div>
</div>
{{/if}}
{{if $slide}}
<div class="panel">
<div class="section-subtitle-wrapper" role="tab" id="affinity-tool">
<h3>
<a class="section" data-bs-toggle="collapse" data-bs-target="#affinity-tool-collapse" href="#" aria-expanded="true" aria-controls="affinity-tool-collapse" data-section="affinity">
Affinity
</a>
</h3>
</div>
<div id="affinity-tool-collapse" class="panel-collapse collapse{{if $section == 'affinity'}} show{{/if}}" role="tabpanel" aria-labelledby="affinity-tool" data-bs-parent="#contact-edit-tools">
<div class="section-content-tools-wrapper">
<div class="mb-2"><label>{{$lbl_slider}}</label></div>
{{$slide}}
<input id="contact-closeness-mirror" type="hidden" name="closeness" value="{{$close}}" />
</div>
</div>
</div>
{{/if}}
{{if $connfilter}}
<div class="panel">
<div class="section-subtitle-wrapper" role="tab" id="filter-tool">
<h3>
<a class="section" data-bs-toggle="collapse" data-bs-target="#filter-tool-collapse" href="#" aria-expanded="true" aria-controls="filter-tool-collapse" data-section="filter">
Content filter
</a>
</h3>
</div>
<div id="filter-tool-collapse" class="panel-collapse collapse{{if $section == 'filter'}} show{{/if}}" role="tabpanel" aria-labelledby="filter-tool" data-bs-parent="#contact-edit-tools">
<div class="section-content-tools-wrapper">
{{include file="field_textarea.tpl" field=$incl}}
{{include file="field_textarea.tpl" field=$excl}}
</div>
</div>
</div>
{{else}}
<input type="hidden" name="{{$incl.0}}" value="{{$incl.2}}" />
<input type="hidden" name="{{$excl.0}}" value="{{$excl.2}}" />
{{/if}}
</div>
</form>
|