Skip to:
Content

bbPress.org


Ignore:
Timestamp:
04/28/2008 12:14:06 PM (18 years ago)
Author:
sambauers
Message:

Form accessibility fixes - See #871 - branches/0.9 - props MarcoZ

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.9/bb-admin/admin-functions.php

    r1405 r1503  
    332332        if ( $show_search ) {
    333333            $r .= "<form action='' method='get' id='search'>\n\t<p>";
     334            $r .= "<label class='hidden' for='usersearch'>" . _e('Search:') . "</label>";
    334335            $r .= "\t\t<input type='text' name='usersearch' id='usersearch' value='" . wp_specialchars( $this->search_term, 1) . "' />\n";
    335336            $r .= "\t\t<input type='submit' value='" . __('Search for users &raquo;') . "' />\n\t</p>\n";
     
    564565    <fieldset>
    565566    <table><col /><col style="width: 80%" />
    566         <tr><th scope="row"><?php _e('Forum Name:'); ?></th>
     567        <tr><th scope="row"><label for="forum-name"><?php _e('Forum Name:'); ?></label></th>
    567568            <td><input type="text" name="forum_name" id="forum-name" value="<?php if ( $forum_id ) echo attribute_escape( get_forum_name( $forum_id ) ); ?>" tabindex="10" class="widefat" /></td>
    568569        </tr>
    569         <tr><th scope="row"><?php _e('Forum Description:'); ?></th>
     570        <tr><th scope="row"><label for="forum-desc"><?php _e('Forum Description:'); ?></label></th>
    570571            <td><input type="text" name="forum_desc" id="forum-desc" value="<?php if ( $forum_id ) echo attribute_escape( get_forum_description( $forum_id ) ); ?>" tabindex="11" class="widefat" /></td>
    571572        </tr>
    572         <tr id="forum-parent-row"><th scope="row"><?php _e('Forum Parent:'); ?></th>
     573        <tr id="forum-parent-row"><th scope="row"><label for="forum_parent"><?php _e('Forum Parent:'); ?></label></th>
    573574            <td><?php bb_forum_dropdown( array('cut_branch' => $forum_id, 'id' => 'forum_parent', 'none' => true, 'selected' => $forum_id ? get_forum_parent( $forum_id ) : 0) ); ?></td>
    574575        </tr>
    575         <tr id="forum-position-row"><th scope="row"><?php _e('Position:'); ?></th>
     576        <tr id="forum-position-row"><th scope="row"><label for="forum-order"><?php _e('Position:'); ?></label></th>
    576577            <td><input type="text" name="forum_order" id="forum-order" value="<?php if ( $forum_id ) echo get_forum_position( $forum_id ); ?>" tabindex="12" maxlength="10" class="widefat" /></td>
    577578        </tr>
Note: See TracChangeset for help on using the changeset viewer.