Ignore:
Timestamp:
Dec 6, 2010, 3:47:33 AM (13 years ago)
Author:
LucMorizur
Message:

Implement 'Smart Fieldsets'

File:
1 edited

Legend:

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

    r7985 r8004  
    55{include file = $HeaderIncTPL}
    66{include file = 'include/datepicker.inc.tpl'}
     7{include file = $SmartFieldsetIncTPL}
    78
    89{* <!-- Specific CSS --> *}
    9 {html_head} {literal}
     10{html_head}
     11{literal}
    1012  <link rel = "stylesheet" type = "text/css" href = "{$RACINE_URL}themes/default/js/ui/theme/ui.datepicker.css">
    1113  <style type = "text/css">
     
    1315      display:none;
    1416    }
    15     .reduced_fieldsets {
    16       margin:0;
    17       padding:0;
    18     }
    19     .fieldsets_legend {
    20       cursor:pointer;
    21     }
    2217  </style>
    23 {/literal} {/html_head}
     18{/literal}
     19{/html_head}
    2420
    2521{* <!-- JS functions --> *}
     
    5955{* <!-- Parameters list --> *}
    6056<form class = "filter" method = "post" name = "ec_new_code" action = "" onsubmit = "return ec_check_submit();">
    61   <p>
     57  <p style = "display:none;">
    6258    <input type = "hidden" id = "ec_act1_id" name = "ec_act1">
    6359    <input type = "hidden" id = "ec_act2_id" name = "ec_entry_sel">
     
    8480 
    8581  {* <!-- [ [ [New] / [existing] code] / [Existing entry] ] selection --> *}
    86   <div id = "reduced_first_fieldset_id" class = "reduced_fieldsets" style = "display:none;">
    87     <span style = "font-weight:bold;" class = "reduced_fieldsets_legend fieldsets_legend" id = "reduced_first_fieldset_legend_id"
    88      ><img class = "plus_bullets" alt = "" title = "" src = "{$EVNTCATS_URLS.ROOT}icon/plus.png"
    89      >&nbsp;<span id = "first_fieldset_legend_id"
    90      >{if $ec_is_creation}{'Code'|@translate}{else}{'Selected entry'|@translate}{/if}</span>&nbsp;: </span
    91      ><span id = "first_fieldset_value_id"></span><span id = "first_fieldset_comment_id"></span>
    92   </div>
    93   <fieldset id = "maximized_first_fieldset_id">
    94     <legend style = "font-weight:bold;" class = "fieldsets_legend" id = "maximized_first_fieldset_legend_id">
    95       <img class = "minus_bullets" alt = "" title = "" src = "{$EVNTCATS_URLS.ROOT}icon/minus.png">
    96       <script type = "text/javascript">d.write(de('first_fieldset_legend_id').innerHTML);</script>
     82  <fieldset id = "first_fieldset_id">
     83    <legend style = "font-weight:bold;">
     84      {if $ec_is_creation}
     85        {'Code'|@translate}
     86      {else}
     87        {'Selected entry'|@translate}
     88      {/if}
    9789    </legend>
    9890    <ul>
     
    188180 
    189181  {* <!-- User to identify --> *}
    190   <div id = "reduced_second_fieldset_id" class = "reduced_fieldsets" style = "display:none;">
    191     <span style = "font-weight:bold;" class = "reduced_fieldsets_legend fieldsets_legend" id = "reduced_second_fieldset_legend_id"
    192      ><img class = "plus_bullets" alt = "" title = "" src = "{$EVNTCATS_URLS.ROOT}icon/plus.png"
    193      >&nbsp;{'Identified user'|@translate}&nbsp;: </span><span id = "second_fieldset_value_id"></span>
    194   </div>
    195   <fieldset id = "maximized_second_fieldset_id">
    196     <legend style = "font-weight:bold;" class = "fieldsets_legend" id = "maximized_second_fieldset_legend_id">
    197       <img class = "minus_bullets" alt = "" title = "" src = "{$EVNTCATS_URLS.ROOT}icon/minus.png">
     182  <fieldset id = "second_fieldset_id">
     183    <legend style = "font-weight:bold;">
    198184      {'Identified user'|@translate}
    199       <span style = "font-weight:bold; color:red;" id = "ec_in_up_pwd_warn">&nbsp;</span><br>
     185      <span style = "font-weight:bold; color:red;" id = "ec_in_up_pwd_warn">&nbsp;</span><br />
    200186    </legend>
    201187      <ul>
     
    539525  ec_default_entry                        = "{$ec_default_entry}";
    540526  ec_auto_code_digits_nb                  = "{$ec_def_auto_code_dg_nb}";
     527  ec_plus_bullet_path                     = "{$EVNTCATS_URLS.ROOT}icon/plus.png";
     528  ec_minus_bullet_path                    = "{$EVNTCATS_URLS.ROOT}icon/minus.png";
    541529  {if $ec_is_creation}
    542530    {foreach from = $ec_lists.duplicable_codes.ids key = ec_key item = ec_val}
Note: See TracChangeset for help on using the changeset viewer.