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

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

[Event Cats] Finish duplication management, configuration management, code cleaning

File size: 6.5 KB
Line 
1{* <!-- Event Cats (event categories) LucMorizur June - ... 2009 --> *}
2
3{include file='../../../plugins/event_cats/admin/template/header.inc.tpl'}
4
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----------------------------------------------------------------------------->
9
10{* <!-- Duplication configuration parameters --> *}
11<form action = "" method = "post" class = "titrePage" name = "ec_duplic_conf">
12  <fieldset>
13    <legend>{'Configuration'|@translate}</legend>
14    <table>
15      <tr>
16        <td style = "text-align:right; font-weight:bold;">
17          {'Duplication allowance'|@translate}&nbsp;&nbsp;
18        </td>
19        <td>
20          <label for = "ec_dup_conf_none_id">
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 />
27          <label for = "ec_dup_conf_group_id">
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 />
34          <label for = "ec_dup_conf_all_id">
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}
40          </label>
41        </td>
42        <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td> {* <!-- sorry :-\ --> *}
43        <td style = "text-align:right; font-weight:bold;">
44          {$ec_dup_link_conf}&nbsp;&nbsp;
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>
69      </tr>
70    </table>
71    <input class = "submit" type = "submit" name = "ec_duplic_conf_submit" value = "{'Save dup. config btn'|@translate}" />
72  </fieldset>
73</form>
74
75{* <!-- Duplication settings by groups / types / user ids --> *}
76<form action = "" method = "post" name = "ec_duplic_set" id="categoryPermissions">
77 
78  <h4>{'Groups'|@translate}</h4>
79 
80  <fieldset>
81    <legend>{'Duplication allowed'|@translate}</legend>
82    <ul>
83      {foreach from=$groups_granted_ids item=id}
84      <li><label><input type = "checkbox" name = "deny_groups[]" value = "{$id}" /> {$all_groups[$id]}</label></li>
85      {/foreach}
86    </ul>
87    <input class = "submit" type = "submit" name = "deny_groups_submit" value = "{'Deny to groups btn'|@translate}" />
88  </fieldset>
89 
90  <fieldset>
91    <legend>{'Duplication denied'|@translate}</legend>
92    <ul>
93      {foreach from=$groups_denied_ids item=id}
94      <li><label><input type = "checkbox" name = "grant_groups[]" value = "{$id}"> {$all_groups[$id]}</label></li>
95      {/foreach}
96    </ul>
97    <input class = "submit" type = "submit" name = "grant_groups_submit" value = "{'Grant to groups btn'|@translate}" />
98  </fieldset>
99 
100  <h4>{'Types'|@translate}</h4>
101 
102  <fieldset>
103    <legend>{'Duplication allowed'|@translate}</legend>
104    <ul>
105      {if $ec_gen_granted}
106      <li><label><input type = "checkbox" name = "deny_generic" /> {'user_status_generic'|@translate}</label></li>
107      <br />
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}
112    </ul>
113    <input class = "submit" type = "submit" name = "deny_types_submit" value = "{'Deny to types btn'|@translate}" />
114  </fieldset>
115 
116  <fieldset>
117    <legend>{'Duplication denied'|@translate}</legend>
118    <ul>
119      {if !$ec_gen_granted}
120      <li><label><input type = "checkbox" name = "grant_generic" /> {'user_status_generic'|@translate}</label></li>
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>
127    <input class = "submit" type = "submit" name = "grant_types_submit" value = "{'Grant to types btn'|@translate}" />
128  </fieldset>
129 
130  <h4>{'Users'|@translate}</h4>
131 
132  <fieldset>
133    <legend>{'Duplication allowed'|@translate}</legend>
134    <ul>
135      {foreach from=$users_granted_direct_ids item=id}
136      <li><label><input type = "checkbox" name = "deny_users[]" value = "{$id}" /> {$all_users[$id]}</label></li>
137      {/foreach}
138    </ul>
139    <input class = "submit" type = "submit" name = "deny_users_submit" value = "{'Deny to users btn'|@translate}" />
140  </fieldset>
141 
142  <fieldset>
143    <legend>{'Dup. allowed tks to'|@translate}</legend>
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>
152 
153  <fieldset>
154    <legend>{'Duplication denied'|@translate}</legend>
155    <ul>
156      {foreach from=$users_denied_ids item=id}
157      <li><label><input type = "checkbox" name = "grant_users[]" value = "{$id}"> {$all_users[$id]}</label></li>
158      {/foreach}
159    </ul>
160    <input class = "submit" type = "submit" name = "grant_users_submit" value = "{'Grant to users btn'|@translate}" />
161  </fieldset>
162 
163</form>
164
165{include file='../../../plugins/event_cats/admin/template/footer.inc.tpl'}
166
Note: See TracBrowser for help on using the repository browser.