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

Last change on this file since 7942 was 7832, checked in by LucMorizur, 13 years ago

Some cosmetic corrections

File size: 7.6 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}
37        </td>
38        <td>
39          <ul style = "list-style-type:none; list-style-position:inside; padding-left: 0.5em;">
40            <li style = "margin-bottom:0;">
41              <label for = "ec_dup_conf_none_id">
42                <input
43                  type = "radio" name = "ec_dup_conf" value = "0" id = "ec_dup_conf_none_id"
44                  {if $ec_conf.dup_allow == '0'} checked = "checked" {/if}
45               >
46                {'No account'|@translate}
47              </label>
48            </li>
49            <li style = "margin-bottom:0;">
50              <label for = "ec_dup_conf_group_id">
51                <input
52                  type = "radio" name = "ec_dup_conf" value = "2" id = "ec_dup_conf_group_id"
53                  {if $ec_conf.dup_allow == '2'} checked = "checked" {/if}
54               >
55                {'Selection per group'|@translate}
56              </label>
57            </li>
58            <li style = "margin-bottom:0;">
59              <label for = "ec_dup_conf_all_id">
60                <input
61                  type = "radio" name = "ec_dup_conf" value = "1" id = "ec_dup_conf_all_id"
62                  {if $ec_conf.dup_allow == '1'} checked = "checked" {/if}
63               >
64                {'All accounts'|@translate}
65              </label>
66            </li>
67          </ul>
68        </td>
69        <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td> {* <!-- sorry :-\ --> *}
70        <td style = "text-align:right; font-weight:bold;">
71          {$ec_dup_link_conf}
72        </td>
73        <td>
74          <ul style = "list-style-type:none; list-style-position:inside; padding-left: 0.5em;">
75            <li style = "margin-bottom:0;">
76              <label for = "ec_dup_disp_normal_id">
77                <input
78                  type = "radio" name = "ec_dup_disp" value = "0" id = "ec_dup_disp_normal_id"
79                  {if $ec_conf.duplic_display == '0'} checked = "checked" {/if}
80               >
81                {'No account'|@translate}
82              </label>
83            </li>
84            <li style = "margin-bottom:0;">
85              <label for = "ec_dup_disp_but_gen_id">
86                <input
87                  type = "radio" name = "ec_dup_disp" value = "2" id = "ec_dup_disp_but_gen_id"
88                  {if $ec_conf.duplic_display == '2'} checked = "checked" {/if}
89               >
90                {'All but generics'|@translate}
91              </label>
92            </li>
93            <li style = "margin-bottom:0;">
94              <label for = "ec_dup_disp_dup_id">
95                <input
96                  type = "radio" name = "ec_dup_disp" value = "1" id = "ec_dup_disp_dup_id"
97                  {if $ec_conf.duplic_display == '1'} checked = "checked" {/if}
98               >
99                {'All accounts'|@translate}
100              </label>
101            </li>
102          </ul>
103        </td>
104      </tr>
105    </table><br>
106    <input class = "submit" type = "submit" name = "ec_duplic_conf_submit" value = "{'Save dup. config btn'|@translate}">
107  </fieldset>
108</form>
109
110{* <!-- Duplication settings by groups / types / user ids --> *}
111<form action = "" method = "post" {* name = "ec_duplic_set" *} id="categoryPermissions">
112 
113  <h4>{'Groups'|@translate}</h4>
114 
115  <fieldset>
116    <legend>{'Duplication allowed'|@translate}</legend>
117    <ul>
118      {foreach from=$groups_granted_ids item=id}
119      <li><label><input type = "checkbox" name = "deny_groups[]" value = "{$id}"> {$all_groups[$id]}</label></li>
120      {/foreach}
121    </ul><br>
122    <input class = "submit" type = "submit" name = "deny_groups_submit" value = "{'Deny to groups btn'|@translate}">
123  </fieldset>
124 
125  <fieldset>
126    <legend>{'Duplication denied'|@translate}</legend>
127    <ul>
128      {foreach from=$groups_denied_ids item=id}
129      <li><label><input type = "checkbox" name = "grant_groups[]" value = "{$id}"> {$all_groups[$id]}</label></li>
130      {/foreach}
131    </ul><br>
132    <input class = "submit" type = "submit" name = "grant_groups_submit" value = "{'Grant to groups btn'|@translate}">
133  </fieldset>
134 
135  <h4>{'Types'|@translate}</h4>
136 
137  <fieldset>
138    <legend>{'Duplication allowed'|@translate}</legend>
139    <ul>
140      {if $ec_gen_granted}
141        <li><label><input type = "checkbox" name = "deny_generic"> {'user_status_generic'|@translate}</label><br></li>
142      {/if}
143      {foreach from=$types_granted_ids item=id}
144        <li><label><input type = "checkbox" name = "deny_types[]" value = "{$id}"> {$all_types[$id]}</label></li>
145      {/foreach}
146    </ul><br>
147    <input class = "submit" type = "submit" name = "deny_types_submit" value = "{'Deny to types btn'|@translate}">
148  </fieldset>
149 
150  <fieldset>
151    <legend>{'Duplication denied'|@translate}</legend>
152    <ul>
153      {if !$ec_gen_granted}
154      <li><label><input type = "checkbox" name = "grant_generic"> {'user_status_generic'|@translate}</label></li>
155      <br>
156      {/if}
157      {foreach from=$types_denied_ids item=id}
158        <li><label><input type = "checkbox" name = "grant_types[]" value = "{$id}"> {$all_types[$id]}</label></li>
159      {/foreach}
160    </ul><br>
161    <input class = "submit" type = "submit" name = "grant_types_submit" value = "{'Grant to types btn'|@translate}">
162  </fieldset>
163 
164  <h4>{'Users'|@translate}</h4>
165 
166  <fieldset>
167    <legend>{'Duplication allowed'|@translate}</legend>
168    <ul>
169      {foreach from=$users_granted_direct_ids item=id}
170      <li><label><input type = "checkbox" name = "deny_users[]" value = "{$id}"> {$all_users[$id]}</label></li>
171      {/foreach}
172    </ul><br>
173    <input class = "submit" type = "submit" name = "deny_users_submit" value = "{'Deny to users btn'|@translate}">
174  </fieldset>
175 
176  <fieldset>
177    <legend>{'Dup. allowed tks to'|@translate}</legend>
178    {if isset($user_granted_indirects) }
179    <ul>
180      {foreach from=$user_granted_indirects item=user_group}
181      <li>{$user_group.USER} ({$user_group.GROUP})</li>
182      {/foreach}
183    </ul>
184    {/if}
185  </fieldset>
186 
187  <fieldset>
188    <legend>{'Duplication denied'|@translate}</legend>
189    <ul>
190      {foreach from=$users_denied_ids item=id}
191      <li><label><input type = "checkbox" name = "grant_users[]" value = "{$id}"> {$all_users[$id]}</label></li>
192      {/foreach}
193    </ul><br>
194    <input class = "submit" type = "submit" name = "grant_users_submit" value = "{'Grant to users btn'|@translate}">
195  </fieldset>
196 
197</form>
198
199{include file=$FooterIncTPL}
200
Note: See TracBrowser for help on using the repository browser.