Dotclear


Ignore:
Timestamp:
08/16/13 14:16:11 (12 years ago)
Author:
Anne Kozlika <kozlika@…>
Branch:
default
Message:

Semantic xhtml and a11y. Let labels to be labels. Step One: admin. Plugins and Themes will come later.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/category.php

    r1358 r1399  
    181181echo 
    182182'<form action="category.php" method="post" id="category-form">'. 
    183 '<fieldset><legend>'.__('Category information').'</legend>'. 
    184 '<p><label class="required" for="cat_title"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').' '. 
     183'<h3>'.__('Category information').'</h3>'. 
     184'<p><label class="required" for="cat_title"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label> '. 
    185185form::field('cat_title',40,255,html::escapeHTML($cat_title)). 
    186 '</label></p>'; 
     186'</p>'; 
    187187if (!$cat_id) 
    188188{ 
     
    202202echo 
    203203'<div class="lockable">'. 
    204 '<p><label for="cat_url">'.__('URL:').' '.form::field('cat_url',40,255,html::escapeHTML($cat_url)). 
    205 '</label></p>'. 
     204'<p><label for="cat_url">'.__('URL:').'</label> ' 
     205.form::field('cat_url',40,255,html::escapeHTML($cat_url)). 
     206'</p>'. 
    206207'<p class="form-note warn" id="note-cat-url">'. 
    207208__('Warning: If you set the URL manually, it may conflict with another category.').'</p>'. 
     
    216217$core->formNonce(). 
    217218'</p>'. 
    218 '</fieldset>'. 
    219219'</form>'; 
    220220 
     
    222222{ 
    223223     echo 
    224      '<h3>'.__('Move this category').'</h3>'. 
     224     '<h3 class="border-top">'.__('Move this category').'</h3>'. 
    225225     '<div class="two-cols">'. 
    226226     '<div class="col">'. 
     
    228228     '<form action="category.php" method="post">'. 
    229229     '<fieldset><legend>'.__('Category parent').'</legend>'. 
    230      '<p><label for="cat_parent" class="classic">'.__('Parent:').' '. 
    231      form::combo('cat_parent',$allowed_parents,$cat_parent).'</label></p>'. 
     230     '<p><label for="cat_parent" class="classic">'.__('Parent:').'</label> '. 
     231     form::combo('cat_parent',$allowed_parents,$cat_parent).'</p>'. 
    232232     '<p><input type="submit" accesskey="s" value="'.__('Save').'" />'. 
    233233     form::hidden(array('id'),$cat_id).$core->formNonce().'</p>'. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map