Ignore:
Timestamp:
Apr 5, 2006, 11:01:05 PM (18 years ago)
Author:
plg
Message:

bug fixed: replace obsolet tn_width and tn_height language keys by their new
equivalent.

improvement: HTML properties forms rewritten to offer labelled Yes/No click
on checkboxes.

improvement: onblur onfocus attribute used on every HTML properties form.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/template/yoga/profile.tpl

    r1100 r1129  
    2727    <ul>
    2828      <li>
    29         <label>{lang:Username}</label>
    30         <strong>{USERNAME}</strong>
     29        <span class="property">{lang:Username}</span>
     30        {USERNAME}
    3131      </li>
    3232
    3333      <li>
    34         <label for="mail_address">{lang:Email address}</label>
     34        <span class="property">
     35          <label for="mail_address">{lang:Email address}</label>
     36        </span>
    3537        <input type="text" name="mail_address" id="mail_address" value="{EMAIL}" onfocus="this.className='focus';" onblur="this.className='nofocus';">
    3638      </li>
    3739
    3840      <li>
    39         <label for="password">{L_CURRENT_PASSWORD}</label>
     41        <span class="property">
     42          <label for="password">{L_CURRENT_PASSWORD}</label>
     43        </span>
    4044        <input type="password" name="password" id="password" value="" onfocus="this.className='focus';" onblur="this.className='nofocus';">
    4145      </li>
    4246
    4347      <li>
    44         <label for="use_new_pwd">{L_NEW_PASSWORD}</label>
     48        <span class="property">
     49          <label for="use_new_pwd">{L_NEW_PASSWORD}</label>
     50        </span>
    4551        <input type="password" name="use_new_pwd" id="use_new_pwd" value="" onfocus="this.className='focus';" onblur="this.className='nofocus';">
    4652      </li>
    4753
    4854      <li>
    49         <label for="passwordConf">{L_CONFIRM_PASSWORD}</label>
     55        <span class="property">
     56          <label for="passwordConf">{L_CONFIRM_PASSWORD}</label>
     57        </span>
    5058        <input type="password" name="passwordConf" id="passwordConf" value="" onfocus="this.className='focus';" onblur="this.className='nofocus';">
    5159      </li>
     
    5866    <ul>
    5967      <li>
    60         <label for="nb_image_line">{L_NB_IMAGE_LINE}</label>
     68        <span class="property">
     69          <label for="nb_image_line">{L_NB_IMAGE_LINE}</label>
     70        </span>
    6171        <input type="text" size="3" maxlength="2" name="nb_image_line" id="nb_image_line" value="{NB_IMAGE_LINE}"
    6272               onfocus="this.className='focus';" onblur="this.className='nofocus';">
     
    6474
    6575      <li>
    66         <label for="nb_line_page">{L_NB_ROW_PAGE}</label>
     76        <span class="property">
     77          <label for="nb_line_page">{L_NB_ROW_PAGE}</label>
     78        </span>
    6779        <input type="text" size="3" maxlength="2" name="nb_line_page" id="nb_line_page" value="{NB_ROW_PAGE}"
    6880               onfocus="this.className='focus';" onblur="this.className='nofocus';">
     
    7082
    7183      <li>
    72         <label for="template">{L_STYLE_SELECT}</label>
    73         <select name="template" id="template"> <!-- FIXME: if onfocus is used, the behaviour becomes weird in Firefox -->
     84        <span class="property">
     85          <label for="template">{L_STYLE_SELECT}</label>
     86        </span>
     87        <select name="template" id="template" onfocus="this.className='focus';" onblur="this.className='nofocus';">
    7488          <!-- BEGIN template_option -->
    7589          <option value="{template_option.VALUE}" {template_option.SELECTED}>{template_option.CONTENT}</option>
     
    7993
    8094      <li>
    81         <label for="language">{L_LANG_SELECT}</label>
    82         <select name="language" id="language"> <!-- same FIXME -->
     95        <span class="property">
     96          <label for="language">{L_LANG_SELECT}</label>
     97        </span>
     98        <select name="language" id="language" onfocus="this.className='focus';" onblur="this.className='nofocus';">
    8399          <!-- BEGIN language_option -->
    84100          <option value="{language_option.VALUE}" {language_option.SELECTED}>{language_option.CONTENT}</option>
     
    88104
    89105      <li>
    90         <label for="recent_period">{L_RECENT_PERIOD}</label>
     106        <span class="property">
     107          <label for="recent_period">{L_RECENT_PERIOD}</label>
     108        </span>
    91109        <input type="text" size="3" maxlength="2" name="recent_period" id="recent_period" value="{RECENT_PERIOD}"
    92110               onfocus="this.className='focus';" onblur="this.className='nofocus';">
     
    94112
    95113      <li>
    96         <label>{L_EXPAND_TREE}</label>
    97         <input type="radio" class="radio" name="expand" value="true" {EXPAND_TREE_YES}> {L_YES}
    98         <input type="radio" class="radio" name="expand" value="false" {EXPAND_TREE_NO}> {L_NO}
     114        <span class="property">{L_EXPAND_TREE}</span>
     115        <label><input type="radio" class="radio" name="expand" value="true" {EXPAND_TREE_YES}> {L_YES}</label>
     116        <label><input type="radio" class="radio" name="expand" value="false" {EXPAND_TREE_NO}> {L_NO}</label>
    99117      </li>
    100118
    101119      <li>
    102         <label>{L_NB_COMMENTS}</label>
    103         <input type="radio" class="radio" name="show_nb_comments" value="true" {NB_COMMENTS_YES}> {L_YES}
    104         <input type="radio" class="radio" name="show_nb_comments" value="false" {NB_COMMENTS_NO}> {L_NO}
     120        <span class="property">{L_NB_COMMENTS}</span>
     121        <label><input type="radio" class="radio" name="show_nb_comments" value="true" {NB_COMMENTS_YES}> {L_YES}</label>
     122        <label><input type="radio" class="radio" name="show_nb_comments" value="false" {NB_COMMENTS_NO}> {L_NO}</label>
    105123      </li>
    106124 
    107125      <li>
    108         <label for="maxwidth">{L_MAXWIDTH}</label>
     126        <span class="property">
     127          <label for="maxwidth">{L_MAXWIDTH}</label>
     128        </span>
    109129        <input type="text" size="4" maxlength="4" name="maxwidth" id="maxwidth" value="{MAXWIDTH}"
    110130               onfocus="this.className='focus';" onblur="this.className='nofocus';">
     
    112132
    113133      <li>
    114         <label for="maxheight">{L_MAXHEIGHT}</label>
     134        <span class="property">
     135          <label for="maxheight">{L_MAXHEIGHT}</label>
     136        </span>
    115137        <input type="text" size="4" maxlength="4" name="maxheight" id="maxheight" value="{MAXHEIGHT}"
    116138               onfocus="this.className='focus';" onblur="this.className='nofocus';">
Note: See TracChangeset for help on using the changeset viewer.