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