Make WordPress Core


Ignore:
Timestamp:
05/04/2008 10:37:06 AM (17 years ago)
Author:
westi
Message:

Associate lables with form fields. Fixes #6859 props MarcoZ.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/users.php

    r7745 r7883  
    146146    </ul>
    147147<?php if ( $go_delete ) : ?>
    148     <p><?php _e('What should be done with posts and links owned by this user?'); ?></p>
     148    <fieldset><p><legend><?php _e('What should be done with posts and links owned by this user?'); ?></legend></p>
    149149    <ul style="list-style:none;">
    150150        <li><label><input type="radio" id="delete_option0" name="delete_option" value="delete" checked="checked" />
     
    152152        <li><input type="radio" id="delete_option1" name="delete_option" value="reassign" />
    153153        <?php echo '<label for="delete_option1">'.__('Attribute all posts and links to:')."</label> $user_dropdown"; ?></li>
    154     </ul>
     154    </ul></fieldset>
    155155    <input type="hidden" name="action" value="dodelete" />
    156156    <p class="submit"><input type="submit" name="submit" value="<?php _e('Confirm Deletion'); ?>" class="button-secondary" /></p>
     
    288288</ul>
    289289    <p id="post-search">
     290    <label class="hidden" for="post-search-input"><?php _e( 'Search Users' ); ?>:</label>
    290291    <input type="text" id="post-search-input" name="usersearch" value="<?php echo attribute_escape($wp_user_search->search_term); ?>" />
    291292    <input type="submit" value="<?php _e( 'Search Users' ); ?>" class="button" />
     
    300301<div class="alignleft">
    301302<input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button-secondary delete" />
    302 <select name="new_role"><option value=''><?php _e('Change role to&hellip;') ?></option>"<?php wp_dropdown_roles(); ?></select>
     303<label class="hidden" for="new_role"><?php _e('Change role to&hellip;') ?></label><select name="new_role" id="new_role"><option value=''><?php _e('Change role to&hellip;') ?></option>"<?php wp_dropdown_roles(); ?></select>
    303304<input type="submit" value="<?php _e('Change'); ?>" name="changeit" class="button-secondary" />
    304305<?php wp_nonce_field('bulk-users'); ?>
     
    404405<table class="form-table">
    405406    <tr class="form-field form-required">
    406         <th scope="row"><?php _e('Username (required)') ?><input name="action" type="hidden" id="action" value="adduser" /></th>
     407        <th scope="row"><label for="user_login"><?php _e('Username (required)') ?></label><input name="action" type="hidden" id="action" value="adduser" /></th>
    407408        <td ><input name="user_login" type="text" id="user_login" value="<?php echo $new_user_login; ?>" /></td>
    408409    </tr>
    409410    <tr class="form-field">
    410         <th scope="row"><?php _e('First Name') ?> </th>
     411        <th scope="row"><label for="first_name"><?php _e('First Name') ?> </label></th>
    411412        <td><input name="first_name" type="text" id="first_name" value="<?php echo $new_user_firstname; ?>" /></td>
    412413    </tr>
    413414    <tr class="form-field">
    414         <th scope="row"><?php _e('Last Name') ?> </th>
     415        <th scope="row"><label for="last_name"><?php _e('Last Name') ?> </label></th>
    415416        <td><input name="last_name" type="text" id="last_name" value="<?php echo $new_user_lastname; ?>" /></td>
    416417    </tr>
    417418    <tr class="form-field form-required">
    418         <th scope="row"><?php _e('E-mail (required)') ?></th>
     419        <th scope="row"><label for="email"><?php _e('E-mail (required)') ?></label></th>
    419420        <td><input name="email" type="text" id="email" value="<?php echo $new_user_email; ?>" /></td>
    420421    </tr>
    421422    <tr class="form-field">
    422         <th scope="row"><?php _e('Website') ?></th>
     423        <th scope="row"><label for="url"><?php _e('Website') ?></label></th>
    423424        <td><input name="url" type="text" id="url" value="<?php echo $new_user_uri; ?>" /></td>
    424425    </tr>
     
    426427<?php if ( apply_filters('show_password_fields', true) ) : ?>
    427428    <tr class="form-field form-required">
    428         <th scope="row"><?php _e('Password (twice)') ?> </th>
     429        <th scope="row"><label for="pass1"><?php _e('Password (twice)') ?> </label></th>
    429430        <td><input name="pass1" type="password" id="pass1" />
    430431        <br />
     
    434435
    435436    <tr class="form-field">
    436         <th scope="row"><?php _e('Role'); ?></th>
     437        <th scope="row"><label for="role"><?php _e('Role'); ?></label></th>
    437438        <td><select name="role" id="role">
    438439            <?php
Note: See TracChangeset for help on using the changeset viewer.