[4002] | 1 | {* <!-- Event Cats (event categories) LucMorizur June - ... 2009 --> *} |
---|
| 2 | |
---|
[4048] | 3 | {include file='../../../plugins/event_cats/admin/template/header.inc.tpl'} |
---|
[4002] | 4 | |
---|
[4263] | 5 | <!-- Aknowledgement ---------------------------------------------------------- |
---|
| 6 | | A lot of below code has simply been copied-pasted from file cat_perm.tpl . | |
---|
| 7 | | Many thanks to people who wrote it ! | |
---|
| 8 | -----------------------------------------------------------------------------> |
---|
[4247] | 9 | |
---|
| 10 | {* <!-- Duplication configuration parameters --> *} |
---|
[4276] | 11 | <form action = "" method = "post" class = "titrePage" name = "ec_duplic_conf"> |
---|
[4228] | 12 | <fieldset> |
---|
[4329] | 13 | <legend>{'Configuration'|@translate}</legend> |
---|
[4233] | 14 | <table> |
---|
| 15 | <tr> |
---|
[4329] | 16 | <td style = "text-align:right; font-weight:bold;"> |
---|
| 17 | {'Duplication allowance'|@translate} |
---|
[4233] | 18 | </td> |
---|
| 19 | <td> |
---|
| 20 | <label for = "ec_dup_conf_none_id"> |
---|
[4329] | 21 | <input |
---|
| 22 | type = "radio" name = "ec_dup_conf" value = "0" id = "ec_dup_conf_none_id" |
---|
| 23 | {if $ec_conf.dup_allow == '0'} checked = "checked" {/if} |
---|
| 24 | /> |
---|
| 25 | {'No account'|@translate} |
---|
| 26 | </label><br /> |
---|
[4233] | 27 | <label for = "ec_dup_conf_group_id"> |
---|
[4329] | 28 | <input |
---|
| 29 | type = "radio" name = "ec_dup_conf" value = "2" id = "ec_dup_conf_group_id" |
---|
| 30 | {if $ec_conf.dup_allow == '2'} checked = "checked" {/if} |
---|
| 31 | /> |
---|
| 32 | {'Selection per group'|@translate} |
---|
| 33 | </label><br /> |
---|
[4233] | 34 | <label for = "ec_dup_conf_all_id"> |
---|
[4329] | 35 | <input |
---|
| 36 | type = "radio" name = "ec_dup_conf" value = "1" id = "ec_dup_conf_all_id" |
---|
| 37 | {if $ec_conf.dup_allow == '1'} checked = "checked" {/if} |
---|
| 38 | /> |
---|
| 39 | {'All accounts'|@translate} |
---|
[4263] | 40 | </label> |
---|
[4233] | 41 | </td> |
---|
[4329] | 42 | <td> </td><td> </td><td> </td> {* <!-- sorry :-\ --> *} |
---|
| 43 | <td style = "text-align:right; font-weight:bold;"> |
---|
| 44 | {$ec_dup_link_conf} |
---|
| 45 | </td> |
---|
| 46 | <td> |
---|
| 47 | <label for = "ec_dup_disp_normal_id"> |
---|
| 48 | <input |
---|
| 49 | type = "radio" name = "ec_dup_disp" value = "0" id = "ec_dup_disp_normal_id" |
---|
| 50 | {if $ec_conf.duplic_display == '0'} checked = "checked" {/if} |
---|
| 51 | /> |
---|
| 52 | {'No account'|@translate} |
---|
| 53 | </label><br /> |
---|
| 54 | <label for = "ec_dup_disp_but_gen_id"> |
---|
| 55 | <input |
---|
| 56 | type = "radio" name = "ec_dup_disp" value = "2" id = "ec_dup_disp_but_gen_id" |
---|
| 57 | {if $ec_conf.duplic_display == '2'} checked = "checked" {/if} |
---|
| 58 | /> |
---|
| 59 | {'All but generics'|@translate} |
---|
| 60 | </label><br /> |
---|
| 61 | <label for = "ec_dup_disp_dup_id"> |
---|
| 62 | <input |
---|
| 63 | type = "radio" name = "ec_dup_disp" value = "1" id = "ec_dup_disp_dup_id" |
---|
| 64 | {if $ec_conf.duplic_display == '1'} checked = "checked" {/if} |
---|
| 65 | /> |
---|
| 66 | {'All accounts'|@translate} |
---|
| 67 | </label><br /> |
---|
| 68 | </td> |
---|
[4233] | 69 | </tr> |
---|
| 70 | </table> |
---|
[4329] | 71 | <input class = "submit" type = "submit" name = "ec_duplic_conf_submit" value = "{'Save dup. config btn'|@translate}" /> |
---|
[4228] | 72 | </fieldset> |
---|
| 73 | </form> |
---|
| 74 | |
---|
[4263] | 75 | {* <!-- Duplication settings by groups / types / user ids --> *} |
---|
[4247] | 76 | <form action = "" method = "post" name = "ec_duplic_set" id="categoryPermissions"> |
---|
[4276] | 77 | |
---|
[4228] | 78 | <h4>{'Groups'|@translate}</h4> |
---|
[4276] | 79 | |
---|
[4228] | 80 | <fieldset> |
---|
[4329] | 81 | <legend>{'Duplication allowed'|@translate}</legend> |
---|
[4228] | 82 | <ul> |
---|
[4276] | 83 | {foreach from=$groups_granted_ids item=id} |
---|
[4228] | 84 | <li><label><input type = "checkbox" name = "deny_groups[]" value = "{$id}" /> {$all_groups[$id]}</label></li> |
---|
| 85 | {/foreach} |
---|
| 86 | </ul> |
---|
[4329] | 87 | <input class = "submit" type = "submit" name = "deny_groups_submit" value = "{'Deny to groups btn'|@translate}" /> |
---|
[4228] | 88 | </fieldset> |
---|
[4276] | 89 | |
---|
[4228] | 90 | <fieldset> |
---|
[4329] | 91 | <legend>{'Duplication denied'|@translate}</legend> |
---|
[4228] | 92 | <ul> |
---|
[4276] | 93 | {foreach from=$groups_denied_ids item=id} |
---|
[4228] | 94 | <li><label><input type = "checkbox" name = "grant_groups[]" value = "{$id}"> {$all_groups[$id]}</label></li> |
---|
| 95 | {/foreach} |
---|
| 96 | </ul> |
---|
[4329] | 97 | <input class = "submit" type = "submit" name = "grant_groups_submit" value = "{'Grant to groups btn'|@translate}" /> |
---|
[4228] | 98 | </fieldset> |
---|
[4276] | 99 | |
---|
[4329] | 100 | <h4>{'Types'|@translate}</h4> |
---|
[4276] | 101 | |
---|
[4263] | 102 | <fieldset> |
---|
[4329] | 103 | <legend>{'Duplication allowed'|@translate}</legend> |
---|
[4263] | 104 | <ul> |
---|
[4276] | 105 | {if $ec_gen_granted} |
---|
[4329] | 106 | <li><label><input type = "checkbox" name = "deny_generic" /> {'user_status_generic'|@translate}</label></li> |
---|
[4263] | 107 | <br /> |
---|
[4276] | 108 | {/if} |
---|
| 109 | {foreach from=$types_granted_ids item=id} |
---|
| 110 | <li><label><input type = "checkbox" name = "deny_types[]" value = "{$id}" /> {$all_types[$id]}</label></li> |
---|
| 111 | {/foreach} |
---|
[4263] | 112 | </ul> |
---|
[4329] | 113 | <input class = "submit" type = "submit" name = "deny_types_submit" value = "{'Deny to types btn'|@translate}" /> |
---|
[4263] | 114 | </fieldset> |
---|
[4276] | 115 | |
---|
| 116 | <fieldset> |
---|
[4329] | 117 | <legend>{'Duplication denied'|@translate}</legend> |
---|
[4276] | 118 | <ul> |
---|
| 119 | {if !$ec_gen_granted} |
---|
[4329] | 120 | <li><label><input type = "checkbox" name = "grant_generic" /> {'user_status_generic'|@translate}</label></li> |
---|
[4276] | 121 | <br /> |
---|
| 122 | {/if} |
---|
| 123 | {foreach from=$types_denied_ids item=id} |
---|
| 124 | <li><label><input type = "checkbox" name = "grant_types[]" value = "{$id}" /> {$all_types[$id]}</label></li> |
---|
| 125 | {/foreach} |
---|
| 126 | </ul> |
---|
[4329] | 127 | <input class = "submit" type = "submit" name = "grant_types_submit" value = "{'Grant to types btn'|@translate}" /> |
---|
[4276] | 128 | </fieldset> |
---|
| 129 | |
---|
[4228] | 130 | <h4>{'Users'|@translate}</h4> |
---|
[4276] | 131 | |
---|
[4228] | 132 | <fieldset> |
---|
[4329] | 133 | <legend>{'Duplication allowed'|@translate}</legend> |
---|
[4228] | 134 | <ul> |
---|
[4276] | 135 | {foreach from=$users_granted_direct_ids item=id} |
---|
[4228] | 136 | <li><label><input type = "checkbox" name = "deny_users[]" value = "{$id}" /> {$all_users[$id]}</label></li> |
---|
| 137 | {/foreach} |
---|
| 138 | </ul> |
---|
[4329] | 139 | <input class = "submit" type = "submit" name = "deny_users_submit" value = "{'Deny to users btn'|@translate}" /> |
---|
[4228] | 140 | </fieldset> |
---|
[4276] | 141 | |
---|
[4228] | 142 | <fieldset> |
---|
[4329] | 143 | <legend>{'Dup. allowed tks to'|@translate}</legend> |
---|
[4228] | 144 | {if isset($user_granted_indirects) } |
---|
| 145 | <ul> |
---|
| 146 | {foreach from=$user_granted_indirects item=user_group} |
---|
| 147 | <li>{$user_group.USER} ({$user_group.GROUP})</li> |
---|
| 148 | {/foreach} |
---|
| 149 | </ul> |
---|
| 150 | {/if} |
---|
| 151 | </fieldset> |
---|
[4276] | 152 | |
---|
[4228] | 153 | <fieldset> |
---|
[4329] | 154 | <legend>{'Duplication denied'|@translate}</legend> |
---|
[4228] | 155 | <ul> |
---|
[4276] | 156 | {foreach from=$users_denied_ids item=id} |
---|
[4228] | 157 | <li><label><input type = "checkbox" name = "grant_users[]" value = "{$id}"> {$all_users[$id]}</label></li> |
---|
| 158 | {/foreach} |
---|
| 159 | </ul> |
---|
[4329] | 160 | <input class = "submit" type = "submit" name = "grant_users_submit" value = "{'Grant to users btn'|@translate}" /> |
---|
[4228] | 161 | </fieldset> |
---|
[4276] | 162 | |
---|
[4228] | 163 | </form> |
---|
| 164 | |
---|
[4048] | 165 | {include file='../../../plugins/event_cats/admin/template/footer.inc.tpl'} |
---|
[4002] | 166 | |
---|