1 | {* $Id: cat_perm.tpl 2531 2008-09-14 12:25:34Z vdigital $ *} |
---|
2 | <div class="titrePage"> |
---|
3 | <h2>{'Manage permissions for a category'|@translate}</h2> |
---|
4 | </div> |
---|
5 | |
---|
6 | <h3>{$CATEGORIES_NAV}</h3> |
---|
7 | |
---|
8 | <form action="{$F_ACTION}" method="post" id="categoryPermissions"> |
---|
9 | |
---|
10 | <h4>{'Groups'|@translate}</h4> |
---|
11 | |
---|
12 | <fieldset> |
---|
13 | <legend>{'Permission granted'|@translate}</legend> |
---|
14 | <ul> |
---|
15 | {foreach from=$group_granted_ids item=id} |
---|
16 | <li><label><input type="checkbox" name="deny_groups[]" value="{$id}" /> {$all_groups[$id]}</label></li> |
---|
17 | {/foreach} |
---|
18 | </ul> |
---|
19 | <input class="submit" type="submit" name="deny_groups_submit" value="{'Deny selected groups'|@translate}" {$TAG_INPUT_ENABLED}/> |
---|
20 | </fieldset> |
---|
21 | |
---|
22 | <fieldset> |
---|
23 | <legend>{'Permission denied'|@translate}</legend> |
---|
24 | <ul> |
---|
25 | {foreach from=$group_denied_ids item=id} |
---|
26 | <li><label><input type="checkbox" name="grant_groups[]" value="{$id}"> {$all_groups[$id]}</label></li> |
---|
27 | {/foreach} |
---|
28 | </ul> |
---|
29 | <input class="submit" type="submit" name="grant_groups_submit" value="{'Grant selected groups'|@translate}" {$TAG_INPUT_ENABLED}/> |
---|
30 | </fieldset> |
---|
31 | |
---|
32 | <h4>{'Users'|@translate}</h4> |
---|
33 | |
---|
34 | <fieldset> |
---|
35 | <legend>{'Permission granted'|@translate}</legend> |
---|
36 | <ul> |
---|
37 | {foreach from=$user_granted_direct_ids item=id} |
---|
38 | <li><label><input type="checkbox" name="deny_users[]" value="{$id}" /> {$all_users[$id]}</label></li> |
---|
39 | {/foreach} |
---|
40 | </ul> |
---|
41 | <input class="submit" type="submit" name="deny_users_submit" value="{'Deny selected users'|@translate}" {$TAG_INPUT_ENABLED}/> |
---|
42 | </fieldset> |
---|
43 | |
---|
44 | <fieldset> |
---|
45 | <legend>{'Permission granted thanks to a group'|@translate}</legend> |
---|
46 | {if isset($user_granted_indirects) } |
---|
47 | <ul> |
---|
48 | {foreach from=$user_granted_indirects item=user_group} |
---|
49 | <li>{$user_group.USER} ({$user_group.GROUP})</li> |
---|
50 | {/foreach} |
---|
51 | </ul> |
---|
52 | {/if} |
---|
53 | </fieldset> |
---|
54 | |
---|
55 | <fieldset> |
---|
56 | <legend>{'Permission denied'|@translate}</legend> |
---|
57 | <ul> |
---|
58 | {foreach from=$user_denied_ids item=id} |
---|
59 | <li><label><input type="checkbox" name="grant_users[]" value="{$id}"> {$all_users[$id]}</label></li> |
---|
60 | {/foreach} |
---|
61 | </ul> |
---|
62 | <input class="submit" type="submit" name="grant_users_submit" value="{'Grant selected users'|@translate}" {$TAG_INPUT_ENABLED}/> |
---|
63 | </fieldset> |
---|
64 | |
---|
65 | </form> |
---|