Ignore:
Timestamp:
Nov 20, 2009, 10:56:32 PM (14 years ago)
Author:
LucMorizur
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/event_cats/admin/template/config.tpl

    r4263 r4329  
    33{include file='../../../plugins/event_cats/admin/template/header.inc.tpl'}
    44
    5 {* <!-- Available soon... --> *}
     5{* <!-- Whether plugin Additionnal Pages is active or not --> *}
     6<div style = "text-align:right; font-style:italic;">
     7  {if $ec_ap_ok}
     8    {'Additional Pages active'|@translate}
     9    <script type = "text/javascript">
     10      var ec_ap_ok = {if count($add_pages) == 0}false{else}true{/if};
     11    </script>
     12  {else}
     13    {'Additional Pages inactive'|@translate}
     14    <script type = "text/javascript">
     15      var ec_ap_ok = false;
     16    </script>
     17  {/if}
     18</div>
    619
    7 <p>Bientôt disponible :-] !</p>
     20<form action = "" method = "post" class = "titrePage" name = "ec_gen_conf" onsubmit = "return ec_check_submit();">
     21 
     22  {* <!-- Duplication configuration parameters --> *}
     23  <h4>{'Duplication'|@translate}</h4>
     24  <table>
     25    <tr>
     26      <td style = "text-align:right; font-weight:bold;">
     27        {'Duplication allowance'|@translate}&nbsp;&nbsp;
     28      </td>
     29      <td>
     30        <label for = "ec_dup_conf_none_id">
     31          <input
     32            type = "radio" name = "ec_dup_conf" value = "0" id = "ec_dup_conf_none_id"
     33            {if $ec_conf.dup_allow == '0'} checked = "checked" {/if}
     34          />
     35          {'No account'|@translate}
     36        </label><br />
     37        <label for = "ec_dup_conf_group_id">
     38          <input
     39            type = "radio" name = "ec_dup_conf" value = "2" id = "ec_dup_conf_group_id"
     40            {if $ec_conf.dup_allow == '2'} checked = "checked" {/if}
     41          />
     42          {'Selection per group'|@translate}
     43        </label><br />
     44        <label for = "ec_dup_conf_all_id">
     45          <input
     46            type = "radio" name = "ec_dup_conf" value = "1" id = "ec_dup_conf_all_id"
     47            {if $ec_conf.dup_allow == '1'} checked = "checked" {/if}
     48          />
     49          {'All accounts'|@translate}
     50        </label>
     51      </td>
     52      <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td> {* <!-- sorry :-\ --> *}
     53      <td style = "text-align:right; font-weight:bold;">
     54        {* <!-- Replace "Register" link ? --> *}
     55        {$ec_dup_link_conf}&nbsp;&nbsp;
     56      </td>
     57      <td>
     58        <label for = "ec_dup_disp_normal_id">
     59          <input
     60            type = "radio" name = "ec_dup_disp" value = "0" id = "ec_dup_disp_normal_id"
     61            {if $ec_conf.duplic_display == '0'} checked = "checked" {/if}
     62          />
     63          {'No account'|@translate}
     64        </label><br />
     65        <label for = "ec_dup_disp_but_gen_id">
     66          <input
     67            type = "radio" name = "ec_dup_disp" value = "2" id = "ec_dup_disp_but_gen_id"
     68            {if $ec_conf.duplic_display == '2'} checked = "checked" {/if}
     69          />
     70          {'All but generics'|@translate}
     71        </label><br />
     72        <label for = "ec_dup_disp_dup_id">
     73          <input
     74            type = "radio" name = "ec_dup_disp" value = "1" id = "ec_dup_disp_dup_id"
     75            {if $ec_conf.duplic_display == '1'} checked = "checked" {/if}
     76          />
     77          {'All accounts'|@translate}
     78        </label><br />
     79      </td>
     80    </tr>
     81    <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
     82  </table>
     83 
     84  {* <!-- What to do if an unknown code is used --> *}
     85  <h4>{'Unknown code'|@translate}</h4>
     86  <table>
     87    <tr>
     88      <td style = "text-align:right; vertical-align:top; font-weight:bold;">
     89        {'Page for unknown code'|@translate}&nbsp;&nbsp;
     90      </td>
     91      <td>
     92        <label for = "ec_unknown_0_id" onclick = "ec_mark_action('ec_unknown_0_id');">
     93          <input type = "radio" name = "ec_unknown" value = "0" id = "ec_unknown_0_id" />
     94          {'Home'|@translate}
     95        </label><br />
     96        <label for = "ec_unknown_1_id" onclick = "ec_mark_action('ec_unknown_1_id');">
     97          <input type = "radio" name = "ec_unknown" value = "1" id = "ec_unknown_1_id" />
     98          {'Access denied'|@translate}
     99        </label><br />
     100        {* <!-- Additionnal Page, provided the plugin is activated and at least one Add. P. is available --> *}
     101        <label class = "ec_block" for = "ec_in_up_aps_id" {if !$ec_ap_ok or count($add_pages) == 0} style = "display:none;" {/if}
     102         onclick = "ec_mark_action('ec_unknown_2_id');"
     103        >
     104          <input type = "radio" name = "ec_unknown" value = "2" id = "ec_unknown_2_id" for = "ec_in_up_aps_id" />
     105          {'Additional Page'|@translate}<br />
     106          <select class = "categoryList" name = "ec_in_up_aps" size="30" id = "ec_in_up_aps_id" onchange = "ec_selected_AP = this.value;" >
     107            {html_options options=$add_pages}
     108          </select>
     109        </label>
     110      </td>
     111    </tr>
     112    <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
     113  </table>
     114 
     115  <div style = "text-align:center;">
     116    <input class = "submit" type = "submit" name = "ec_conf_submit" value = "{'Submit'|@translate}" />
     117  </div>
     118 
     119</form>
     120
    8121
    9122{* <!-- JavaScript functions --> *}
    10 {* <!--
    11 <script type = "text/javascript" src = "{$RACINE_URL}{$EVNTCATS_PATH}admin/template/autolog_new.js"></script>
     123<script type = "text/javascript" src = "{$RACINE_URL}{$EVNTCATS_PATH}admin/template/config.js"></script>
    12124<script type = "text/javascript"><!--
    13   ec_JS_message['ec_gen_user_act_miss'] = "{'ec_gen_user_act_miss'|@translate|@escape:javascript}";
    14   ec_JS_message['ec_act_cat_miss']      = "{'ec_act_cat_miss'|@translate|@escape:javascript}";
    15   ec_JS_message['ec_new_pwd_gen']       = "{'ec_new_pwd_gen'|@translate|@escape:javascript}";
    16   ec_JS_message['ec_up_code_lbl_home']  = "{'ec_up_code_lbl_home'|@translate}";
    17   ec_init();
     125  ec_JS_message                                              = "{'ec_gen_user_act_miss'|@translate|@escape:javascript}";
     126  ec_selected_action                                          = "{$ec_conf.unknown_code}";
     127  ec_selected_AP                                              = "{$ec_conf.unknown_code_ap_id}";
     128  document.ec_gen_conf.ec_unknown[ec_selected_action].checked = 'checked';
     129  if (de('ec_unknown_2_id').checked != '') ec_mark_action('ec_unknown_2_id');
    18130//--></script>
    19 --> *}
    20131
    21132{include file='../../../plugins/event_cats/admin/template/footer.inc.tpl'}
    22 
    23 {* <!--
    24 --> *}
Note: See TracChangeset for help on using the changeset viewer.