source: extensions/event_cats/admin/template/duplication.tpl @ 4421

Last change on this file since 4421 was 4421, checked in by LucMorizur, 14 years ago

[Event Cats] Add character "é" in all files so to keep them coded in UTF-8 w/o BOM

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