Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/08/2014 06:05:10 PM (10 years ago)
Author:
r-a-y
Message:

XProfile Admin: Add placeholder attribute to group name and field name input fields.

This improves the UX when having to add a new profile group or profile
field on the "Users > Profile Fields" admin page.

Fixes #5859.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/bp-xprofile-classes.php

    r8986 r8991  
    501501                                <div id="titlewrap">
    502502                                    <label class="screen-reader-text" id="title-prompt-text" for="title"><?php esc_html_e( 'Field Group Title', 'buddypress') ?></label>
    503                                     <input type="text" name="group_name" autocomplete="off" id="title" value="<?php echo esc_attr( $this->name ); ?>" />
     503                                    <input type="text" name="group_name" autocomplete="off" id="title" value="<?php echo esc_attr( $this->name ); ?>" placeholder="<?php echo esc_attr_x( 'Group Name', 'XProfile admin edit group', 'buddypress' ); ?>" />
    504504                                </div>
    505505                            </div>
     
    921921                        <div id="post-body-content">
    922922                            <div id="titlediv">
    923                                 <input type="text" name="title" id="title" value="<?php echo esc_attr( $this->name ); ?>" />
     923                                <input type="text" name="title" id="title" value="<?php echo esc_attr( $this->name ); ?>" placeholder="<?php echo esc_attr_x( 'Field Name', 'XProfile admin edit field', 'buddypress' ); ?>" />
    924924                            </div>
    925925                            <div class="postbox">
Note: See TracChangeset for help on using the changeset viewer.