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

Revision 4263, 5.6 KB checked in by LucMorizur, 10 years ago (diff)

[Event Cats] Continue duplication management

Line 
1{* <!-- Event Cats (event categories) LucMorizur June - ... 2009 --> *}
2
3{include file='../../../plugins/event_cats/admin/template/header.inc.tpl'}
4
5{* <!-- Available soon... --> *}
6<p>Bientôt disponible :-] !</p>
7
8<!-- Aknowledgement ----------------------------------------------------------
9| A lot of below code has simply been copied-pasted from file cat_perm.tpl . |
10| Many thanks to people who wrote it !                                       |
11----------------------------------------------------------------------------->
12
13{* <!-- Duplication configuration parameters --> *}
14<form class = "titrePage" name = "ec_duplic_conf">
15  <fieldset>
16    <legend>{'ec_duplication_config'|@translate}</legend>
17    <table>
18      <tr>
19        <td>
20          <span style = "font-weight:bold;">{'ec_duplication_allowance'|@translate}&nbsp;&nbsp;</span>
21        </td>
22        <td>
23          <label for = "ec_dup_conf_none_id">
24            <input type = "radio" name = "ec_dup_conf" id = "ec_dup_conf_none_id" />
25            {'ec_dup_allowance_none'|@translate}
26          </label><br>
27          <label for = "ec_dup_conf_group_id">
28            <input type = "radio" name = "ec_dup_conf" id = "ec_dup_conf_group_id" />
29            {'ec_dup_allowance_group'|@translate}
30          </label><br> {* <!--
31          <label for = "ec_dup_conf_gen_id">
32            <input type = "radio" name = "ec_dup_conf" id = "ec_dup_conf_gen_id" />
33            {'ec_dup_allowance_gen'|@translate}
34          </label><br> --> *}
35          <label for = "ec_dup_conf_all_id">
36            <input type = "radio" name = "ec_dup_conf" id = "ec_dup_conf_all_id" />
37            {'ec_dup_allowance_all'|@translate}
38          </label>
39        </td>
40      </tr>
41    </table>
42    <input class = "submit" type = "submit" name = "ec_duplic_conf_submit" value = "{'ec_dup_conf_sbmt_lbl'|@translate}" />
43  </fieldset>
44</form>
45
46{* <!-- Duplication settings by groups / types / user ids --> *}
47<form action = "" method = "post" name = "ec_duplic_set" id="categoryPermissions">
48
49  <h4>{'Groups'|@translate}</h4>
50
51  <fieldset>
52    <legend>{'ec_duplic_ok'|@translate}</legend>
53    <ul>
54      {foreach from=$group_granted_ids item=id}
55      <li><label><input type = "checkbox" name = "deny_groups[]" value = "{$id}" /> {$all_groups[$id]}</label></li>
56      {/foreach}
57    </ul>
58    <input class = "submit" type = "submit" name = "deny_groups_submit" value = "{'ec_dup_grp_ok_sbmt_lbl'|@translate}" />
59  </fieldset>
60
61  <fieldset>
62    <legend>{'ec_duplic_nok'|@translate}</legend>
63    <ul>
64      {foreach from=$group_denied_ids item=id}
65      <li><label><input type = "checkbox" name = "grant_groups[]" value = "{$id}"> {$all_groups[$id]}</label></li>
66      {/foreach}
67    </ul>
68    <input class = "submit" type = "submit" name = "grant_groups_submit" value = "{'ec_dup_grp_nok_sbmt_lbl'|@translate}" />
69  </fieldset>
70
71  <h4>{'ec_dup_types'|@translate}</h4>
72
73  <fieldset>
74    <legend>{'ec_duplic_ok'|@translate}</legend>
75    <ul>
76      <li><label><input type = "checkbox" name = "ec_dup_types_generic_ok" value = "ec_dup_types_generic_ok_id" /> {'user_status_generic'|@translate}</label></li>
77      <br />
78      <li><label><input type = "checkbox" name = "ec_dup_types_contacts_ok" value = "ec_dup_types_contacts_ok_id" /> {'Level 1'|@translate}</label></li>
79      <li><label><input type = "checkbox" name = "ec_dup_types_friends_ok" value = "ec_dup_types_friends_ok_id" /> {'Level 2'|@translate}</label></li>
80      <li><label><input type = "checkbox" name = "ec_dup_types_family_ok" value = "ec_dup_types_family_ok_id" /> {'Level 4'|@translate}</label></li>
81    </ul>
82    <input class = "submit" type = "submit" name = "deny_users_submit" value = "{'ec_dup_typ_sbmt_lbl'|@translate}" />
83  </fieldset>
84
85  <h4>{'Users'|@translate}</h4>
86
87  <fieldset>
88    <legend>{'ec_duplic_ok'|@translate}</legend>
89    <ul>
90      {foreach from=$user_granted_direct_ids item=id}
91      <li><label><input type = "checkbox" name = "deny_users[]" value = "{$id}" /> {$all_users[$id]}</label></li>
92      {/foreach}
93    </ul>
94    <input class = "submit" type = "submit" name = "deny_users_submit" value = "{'ec_dup_usr_ok_sbmt_lbl'|@translate}" />
95  </fieldset>
96
97  <fieldset>
98    <legend>{'ec_duplic_ok_groups'|@translate}</legend>
99    {if isset($user_granted_indirects) }
100    <ul>
101      {foreach from=$user_granted_indirects item=user_group}
102      <li>{$user_group.USER} ({$user_group.GROUP})</li>
103      {/foreach}
104    </ul>
105    {/if}
106  </fieldset>
107
108  <fieldset>
109    <legend>{'ec_duplic_nok'|@translate}</legend>
110    <ul>
111      {foreach from=$user_denied_ids item=id}
112      <li><label><input type = "checkbox" name = "grant_users[]" value = "{$id}"> {$all_users[$id]}</label></li>
113      {/foreach}
114    </ul>
115    <input class = "submit" type = "submit" name = "grant_users_submit" value = "{'ec_dup_usr_nok_sbmt_lbl'|@translate}" />
116  </fieldset>
117
118</form>
119
120
121
122
123{* <!-- JavaScript functions --> *}
124{* <!--
125<script type = "text/javascript" src = "{$RACINE_URL}{$EVNTCATS_PATH}admin/template/autolog_new.js"></script>
126<script type = "text/javascript"><!--
127  ec_JS_message['ec_gen_user_act_miss'] = "{'ec_gen_user_act_miss'|@translate|@escape:javascript}";
128  ec_JS_message['ec_act_cat_miss']      = "{'ec_act_cat_miss'|@translate|@escape:javascript}";
129  ec_JS_message['ec_new_pwd_gen']       = "{'ec_new_pwd_gen'|@translate|@escape:javascript}";
130  ec_JS_message['ec_up_code_lbl_home']  = "{'ec_up_code_lbl_home'|@translate}";
131  ec_init();
132//--></script>
133--> *}
134
135{include file='../../../plugins/event_cats/admin/template/footer.inc.tpl'}
136
137{* <!--
138--> *}
139
Note: See TracBrowser for help on using the repository browser.