aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/privacy_groups.tpl
blob: c06f5b0ca6b56534cd547d5e1debeb8f254a3efc (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
<div class="generic-content-wrapper">
	<div class="clearfix section-title-wrapper">
		<button type="button" class="btn btn-sm btn-success float-end" onclick="openClose('group_tools')"><i class="fa fa-plus-circle"></i> {{$add_new_label}}</button>
		<h2>{{$title}}</h2>
	</div>
	<div id="group_tools" class="clearfix section-content-tools-wrapper"{{if ! $new}} style="display: none"{{/if}}>
		<form action="group/new" id="group-edit-form" method="post" >
			<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
			{{include file="field_input.tpl" field=$gname}}
			{{include file="field_checkbox.tpl" field=$public}}
			{{$pgrp_extras}}
			<button type="submit" name="submit" class="btn btn-sm btn-primary float-end">{{$submit}}</button>
		</form>
	</div>

	<table id="groups-index">
		<tr>
			<th width="99%">{{$name_label}}</th>
			<th width="1%">{{$count_label}}</th>
		</tr>

		{{foreach $entries as $group}}
		<tr id="groups-index-{{$group.id}}" class="group-index-row">
			<td><a href="group/{{$group.id}}">{{$group.name}}</a></td>
			<td>{{$group.count}}</td>
		</tr>
		{{/foreach}}
	</table>
</div>