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

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

Clean duplication.tpl thanks to HTMLvalidator; fix bug:1947

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