-
Notifications
You must be signed in to change notification settings - Fork 24
/
manage_groups.tpl
63 lines (60 loc) · 2.25 KB
/
manage_groups.tpl
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
{*
* Copyright (c) 2007-2011 OIC Group, Inc.
* Written and Designed by Adam Kessler
*
* This file is part of Exponent
*
* Exponent is free software; you can redistribute
* it and/or modify it under the terms of the GNU
* General Public License as published by the Free
* Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* GPL: http://www.gnu.org/licenses/gpl.txt
*
*}
{css unique="manage_groups" corecss="tables"}
{/css}
<div class="module users manage-group">
<h1>{$moduletitle|default:"Manage User Groups"}</h1>
<p>
Groups are used to treat a set of users as a single entity, mostly for permission management.
This form allows you to determine which users belong to which groups, create new groups, modify
existing groups, and remove groups.
{br}
When a new user account is created, it will be automatically added to all groups with a Type of "Default"
</p>
<div class="module-actions">
{icon class=add controller=users action=edit_group title="Create a New User Group" text="Create a New User Group" alt="Create a New User Group"}
</div>
{pagelinks paginate=$page top=1}
<table class="exp-skin-table">
<thead>
<tr>
{$page->header_columns}
<th> </th>
</tr>
</thead>
<tbody>
{foreach from=$page->records item=group name=listings}
<tr class="{cycle values="odd,even"}">
<td>{$group->name}</td>
<td>{$group->description}</td>
<td>{if $group->inclusive}<b>Default</b>{else}Normal{/if}</td>
<td>
{permissions level=$smarty.const.UILEVEL_PERMISSIONS}
<div class="item-actions">
{icon img=groupperms.png controller=users action="manage_group_memberships" record=$group title="Add/Remove Members to Group `$group->name`"}
{icon img=edit.png controller=users action=edit_group record=$group title="Edit"}
{icon img=delete.png controller=users action=delete_group record=$group title="Delete" onclick="return confirm('Are you sure you want to delete this group?');"}
</div>
{/permissions}
</td>
</tr>
{foreachelse}
<td colspan="{$page->columns|count}">No Data.</td>
{/foreach}
</tbody>
</table>
{pagelinks paginate=$page bottom=1}
</div>