Ignore:
Timestamp:
Apr 17, 2011, 10:42:21 PM (13 years ago)
Author:
LucMorizur
Message:

Improve HTML

File:
1 edited

Legend:

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

    r8956 r10456  
    1010    {'Help banner'|@translate} 
    1111    <label for = "ec_help_banner2_1" onclick = "ec_mark_help('ec_help_banner_1');">
    12       <input type = "radio" name = "ec_help_banner2_onoff" id = "ec_help_banner2_1"/>
     12      <input type = "radio" name = "ec_help_banner2_onoff" id = "ec_help_banner2_1">
    1313      {'Show'|@translate}
    1414    </label>
    1515    &nbsp;
    1616    <label for = "ec_help_banner2_0" onclick = "ec_mark_help('ec_help_banner_0');">
    17       <input type = "radio" name = "ec_help_banner2_onoff" id = "ec_help_banner2_0"/>
     17      <input type = "radio" name = "ec_help_banner2_onoff" id = "ec_help_banner2_0">
    1818      {'Hide'|@translate}
    1919    </label>
     
    3838{* <!-- Parameters list --> *}
    3939<form class = "filter" method = "post" name = "ec_new_code" action = "" onsubmit = "return ec_check_submit();">
    40   <input type = "hidden" id = "ec_act1_id" name = "ec_act1" />
    41   <input type = "hidden" id = "ec_act2_id" name = "ec_entry_sel" />
     40  <input type = "hidden" id = "ec_act1_id" name = "ec_act1">
     41  <input type = "hidden" id = "ec_act2_id" name = "ec_entry_sel">
    4242 
    4343  {* <!-- Page title. Can be "New entry" or "Entry modification" --> *}
     
    5454    </a>
    5555    {if $ec_is_creation}
    56       <br /><br />
     56      <br><br>
    5757      <input class = "submit" type = "button" name = "ec_submit_gen_full_auto" value = "{'Full auto'|@translate}"
    58        id = "ec_submit_gen_full_auto_id" onclick = "ec_gen_full_auto();" style = "margin-top:0;"/>
     58       id = "ec_submit_gen_full_auto_id" onclick = "ec_gen_full_auto();" style = "margin-top:0;">
    5959    {/if}
    6060  </div>
     
    7474          {* <!-- New code (to create) --> *}
    7575          <label for = "ec_in_up_code_id" onclick = "ec_mark_code('ec_sel_code_new');" {$ec_hidden_when_no_code} >
    76             <input type = "radio" name = "ec_sel_code" for = "ec_in_up_code_id" value = "new" id = "ec_sel_code_new"/>
     76            <input type = "radio" name = "ec_sel_code" for = "ec_in_up_code_id" value = "new" id = "ec_sel_code_new">
    7777            {'New code'|@translate}
    7878          </label>
     
    8181            <input class = "submit" type = "button" name = "ec_submit_gen_code" value = "{'Auto code button'|@translate}"
    8282             id = "ec_submit_gen_code_id" onclick = "ec_gen_code();" style = "margin:0;"
    83             />
     83            >
    8484          </label>
    8585          {'Auto code mid'|@translate}
     
    9797            {/foreach}
    9898          </select>
    99           {'Auto code end'|@translate}<br />
     99          {'Auto code end'|@translate}<br>
    100100          <li style = "padding-left: 30px;">
    101101            <input type = "text" name = "ec_in_up_code" maxlength = "32" size = "40"
    102102             id = "ec_in_up_code_id" onblur = "ec_check_code_text(this.value);"
    103             />
     103            >
    104104            &nbsp;&#151;&nbsp;
    105105            <label for = "ec_in_up_comment_id" style = "margin:0;" title = "{'Optional'|@translate}">
     
    107107              <input type = "text" name = "ec_in_up_comment" maxlength = "100" size = "50" id = "ec_in_up_comment_id"
    108108                onchange = "ec_new_comment_text = this.value;"
    109               />
     109              >
    110110            </label>
    111111          </li>
     
    115115          {* <!-- Known code --> *}
    116116          <label for = "ec_in_up_code_list_id" onclick = "ec_mark_code('ec_sel_code_old');" {$ec_hidden_when_no_code}>
    117             <input type = "radio" name = "ec_sel_code" for = "ec_in_up_code_list_id" {$ec_hidden_when_no_code} value = "old" id = "ec_sel_code_old" />
     117            <input type = "radio" name = "ec_sel_code" for = "ec_in_up_code_list_id" {$ec_hidden_when_no_code} value = "old" id = "ec_sel_code_old">
    118118            {'Existing code'|@translate}
    119119          </label>
     
    150150              <input type = "text" name = "ec_in_up_comment" maxlength = "100" size = "50" id = "ec_in_up_comment_id"
    151151                onchange = "ec_new_comment_text = this.value;"
    152               />
     152              >
    153153            </label>
    154154        </li>
     
    162162    <legend style = "font-weight:bold;">
    163163      {'Identified user'|@translate}
    164       <span style = "font-weight:bold; color:red;" id = "ec_in_up_pwd_warn">&nbsp;</span><br />
     164      <span style = "font-weight:bold; color:red;" id = "ec_in_up_pwd_warn">&nbsp;</span><br>
    165165    </legend>
    166166   
     
    169169          {* <!-- None --> *}
    170170          <label onclick = "return ec_mark_user('ec_sel_user_none');">
    171             <input type = "radio" name = "ec_sel_user" value = "none" id = "ec_sel_user_none" />
     171            <input type = "radio" name = "ec_sel_user" value = "none" id = "ec_sel_user_none">
    172172            {'No user'|@translate}
    173           </label><br />
     173          </label><br>
    174174        </li>
    175175      {/if}
     
    178178        {* <!-- New user (to create) --> *}
    179179        <label for = "ec_in_up_usr_txt_id" onclick = "return ec_mark_user('ec_sel_user_new');" {$ec_hidden_when_no_user} >
    180           <input type = "radio" name = "ec_sel_user" for = "ec_in_up_usr_txt_id" value = "new" id = "ec_sel_user_new" {$ec_hidden_when_no_user} />
     180          <input type = "radio" name = "ec_sel_user" for = "ec_in_up_usr_txt_id" value = "new" id = "ec_sel_user_new" {$ec_hidden_when_no_user}>
    181181          {'New generic user'|@translate}
    182182        </label>
     
    185185          <input class = "submit" type = "button" name = "ec_submit_gen_user" value = "{'Generate username'|@translate}"
    186186           id = "ec_submit_gen_user_id" onclick = "ec_gen_user();"
    187           />
     187          >
    188188        </label>
    189189        <li style = "padding-left: 30px;">
    190           <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'New username'|@translate}<br />
     190          <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'New username'|@translate}<br>
    191191            <input type = "text" name = "login" id = "ec_in_up_usr_txt_id" maxlength = "50"
    192192             size = "20" onblur = "ec_new_user_text = this.value; ec_check_user_text();"
    193             />
    194           </label>
    195           <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'New password'|@translate}<br />
     193            >
     194          </label>
     195          <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'New password'|@translate}<br>
    196196            <input type = "text" name = "password" id = "ec_in_up_psd_txt_id" maxlength = "32"
    197197             size = "20" onblur = "ec_new_psd_text = this.value; ec_check_pwd_text();"
    198             />
    199           </label>
    200           <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'Confirm password'|@translate}<br />
    201             <input type = "password" id = "ec_confirm_psd_txt_id" maxlength = "32" size = "20"/>
     198            >
     199          </label>
     200          <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'Confirm password'|@translate}<br>
     201            <input type = "password" id = "ec_confirm_psd_txt_id" maxlength = "32" size = "20">
    202202          </label>
    203203          <label class = "ec_block" onclick = "ec_check_grp_text(); return ec_mark_user('ec_sel_user_new');" for = "ec_in_up_grp_txt_id">
    204204            <input type = "checkbox" name = "ec_in_up_newgroup" id = "ec_in_up_newgroup_id"
    205205             onchange = "ec_selected_old_group = (this.checked != '');"
    206             />
     206            >
    207207            <span onMouseover = "ec_chk_over_grp = true;" onMouseout = "ec_chk_over_grp = false;">
    208208              {'New group'|@translate}
    209             </span><br />
     209            </span><br>
    210210            <input type = "text" name = "groupname" id = "ec_in_up_grp_txt_id" maxlength = "32"
    211211             size = "20" onblur = "ec_new_grp_text = this.value; if (this.value != '') ec_selected_old_group = true;"
    212             />
    213           </label>
    214         </li><br />
     212            >
     213          </label>
     214        </li><br>
    215215      </li>
    216216     
     
    218218        {* <!-- Known user --> *}
    219219        <label for = "ec_in_up_usr_list_id" onclick = "return ec_mark_user('ec_sel_user_old');" {$ec_hidden_when_no_user} >
    220           <input type = "radio" name = "ec_sel_user" for = "ec_in_up_usr_list_id" {$ec_hidden_when_no_user} value = "old" id = "ec_sel_user_old" />
     220          <input type = "radio" name = "ec_sel_user" for = "ec_in_up_usr_list_id" {$ec_hidden_when_no_user} value = "old" id = "ec_sel_user_old">
    221221          {'Existing user'|@translate}
    222222        </label>
     
    225225            <option label = "{$ec_val}" value = "{$ec_key}" >{$ec_val}</option>
    226226          {/foreach}
    227         </select><br />
     227        </select><br>
    228228      </li>
    229229   
     
    246246       {if !$ec_ap_ok or count($ec_lists.add_pages) == 0} style = "display:none;" {/if}
    247247      >
    248         <input type = "radio" name = "ec_input_action" value = "add_p" id = "ec_input_action_add_p" for = "ec_in_up_aps_id" />
    249         {'Additional Page'|@translate}<br />
     248        <input type = "radio" name = "ec_input_action" value = "add_p" id = "ec_input_action_add_p" for = "ec_in_up_aps_id">
     249        {'Additional Page'|@translate}<br>
    250250        <select class = "categoryList" name = "ec_in_up_aps" size="30" id = "ec_in_up_aps_id" onchange = "ec_selected_AP = this.value;" >
    251251          {html_options options=$ec_lists.add_pages}
     
    259259        <input type = "radio" name = "ec_input_action" value = "cat" id = "ec_input_action_cat" for = "ec_in_up_cats_id"
    260260          onMouseover = "ec_chk_nover_cat = false;" onMouseout = "ec_chk_nover_cat = true;"
    261         />
    262         <span onMouseover = "ec_chk_nover_cat = false;" onMouseout = "ec_chk_nover_cat = true;">{'Category'|@translate}</span><br />
     261        >
     262        <span onMouseover = "ec_chk_nover_cat = false;" onMouseout = "ec_chk_nover_cat = true;">{'Category'|@translate}</span><br>
    263263        <select class = "categoryList" name = "ec_in_up_cat" size = "30" id = "ec_in_up_cats_id" onchange = "ec_selected_cat = this.value;">
    264264          {html_options options=$ec_lists.categories}
     
    270270       {if $ec_no_assoc or count($ec_lists.categories) == 0} style = "display:none;" {/if}
    271271      >
    272         <input type = "radio" name = "ec_input_action" value = "img" id = "ec_input_action_img" for = "ec_in_up_imgs_id" />
    273         {'Image id'|@translate}<br />
     272        <input type = "radio" name = "ec_input_action" value = "img" id = "ec_input_action_img" for = "ec_in_up_imgs_id">
     273        {'Image id'|@translate}<br>
    274274        <input type = "text" name = "ec_in_up_img" id = "ec_in_up_imgs_id" maxlength = "6"
    275275         size = "10" onblur = "ec_selected_img = this.value; ec_check_img_text();" onfocus = "return ec_mark_action('ec_input_action_img');"
    276         /><br />
    277         <span id = "ec_in_up_imgs_warn">&nbsp;</span><br />
     276        ><br>
     277        <span id = "ec_in_up_imgs_warn">&nbsp;</span><br>
    278278      </label>
    279279     
    280280      {* <!-- Index page --> *}
    281281      <label class = "ec_block" onclick = "return ec_mark_action('ec_input_action_home');">
    282         <input type = "radio" name = "ec_input_action" value = "home" id = "ec_input_action_home" />
     282        <input type = "radio" name = "ec_input_action" value = "home" id = "ec_input_action_home">
    283283        {'Home'|@translate}
    284284      </label>
     
    287287      {if !$ec_is_creation}
    288288        <label class = "ec_block" onclick = "return ec_mark_action('ec_input_action_refused');">
    289           <input type = "radio" name = "ec_input_action" value = "refused" id = "ec_input_action_refused" />
     289          <input type = "radio" name = "ec_input_action" value = "refused" id = "ec_input_action_refused">
    290290          {'Access denied'|@translate}
    291291        </label>
     
    296296 
    297297  <p>
    298     <input class = "submit" type = "submit" value = "{'Submit'|@translate}"/>
    299     <input class = "submit" type = "submit" value = "{'Reset'|@translate}" onclick = "return ec_init();"/>
     298    <input class = "submit" type = "submit" value = "{'Submit'|@translate}">
     299    <input class = "submit" type = "submit" value = "{'Reset'|@translate}" onclick = "return ec_init();">
    300300  </p>
    301301</form>
Note: See TracChangeset for help on using the changeset viewer.