Skip to:
Content

BuddyPress.org

Changeset 10090


Ignore:
Timestamp:
09/01/2015 09:36:17 PM (4 years ago)
Author:
mercime
Message:

Add label tags for Group Admin form controls.

Accessibility fix adds label tags for two select fields, a textarea
field, and the wp_editor form control in the Groups admin screen when
editing a group in the backend.

See #6532.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-admin.php

    r10065 r10090  
    592592                                    <h3><?php _e( 'Name and Description', 'buddypress' ); ?></h3>
    593593                                    <div class="inside">
     594                                        <label for="bp-groups-name" class="screen-reader-text"><?php _e( 'Group Name', 'buddypress' ); ?></label>
    594595                                        <input type="text" name="bp-groups-name" id="bp-groups-name" value="<?php echo esc_attr( stripslashes( $group_name ) ) ?>" />
    595596                                        <div id="bp-groups-permalink-box">
     
    597598                                        </div>
    598599
    599 
     600                                        <label for="bp-groups-description" class="screen-reader-text"><?php _e( 'Group Description', 'buddypress' ); ?></label>
    600601                                        <?php wp_editor( stripslashes( $group->description ), 'bp-groups-description', array( 'media_buttons' => false, 'teeny' => true, 'textarea_rows' => 5, 'quicktags' => array( 'buttons' => 'strong,em,link,block,del,ins,img,code,spell,close' ) ) ); ?>
    601602                                    </div>
     
    805806    ?>
    806807
     808    <label for="bp-groups-new-members" class="screen-reader-text"><?php _e( 'Add new members', 'buddypress' ); ?></label>
    807809    <input name="bp-groups-new-members" id="bp-groups-new-members" class="bp-suggest-user" placeholder="<?php esc_attr_e( 'Enter a comma-separated list of user logins.', 'buddypress' ) ?>" />
    808810    <ul id="bp-groups-new-members-list"></ul>
     
    898900
    899901                        <td class="urole-column">
     902                            <label for="bp-groups-role-<?php echo esc_attr( $type_user->ID ); ?>" class="screen-reader-text"><?php _e( 'Select group role for member', 'buddypress' ); ?></label>
    900903                            <select class="bp-groups-role" id="bp-groups-role-<?php echo esc_attr( $type_user->ID ); ?>" name="bp-groups-role[<?php echo esc_attr( $type_user->ID ); ?>]">
    901904                                <optgroup label="<?php esc_attr_e( 'Roles', 'buddypress' ); ?>">
Note: See TracChangeset for help on using the changeset viewer.