Skip to:
Content

BuddyPress.org

Changeset 11618


Ignore:
Timestamp:
06/23/2017 09:31:25 PM (9 years ago)
Author:
mercime
Message:

xProfile: Add fieldset to group related form controls.

See #7348.

Location:
trunk/src
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/members/register.php

    r11617 r11618  
    170170
    171171                                                <div<?php bp_field_css_class( 'editfield' ); ?>>
     172                                                        <fieldset>
    172173
    173174                                                        <?php
     
    223224                                                        do_action( 'bp_custom_profile_edit_fields' ); ?>
    224225
     226                                                        </fieldset>
    225227                                                </div>
    226228
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/profile/edit.php

    r11617 r11618  
    3939
    4040                        <div<?php bp_field_css_class( 'editfield' ); ?>>
     41                                <fieldset>
    4142
    4243                                <?php
     
    9293                                do_action( 'bp_custom_profile_edit_fields' ); ?>
    9394
     95                                </fieldset>
    9496                        </div>
    9597
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-checkbox.php

    r11617 r11618  
    6868                } ?>
    6969
    70                 <fieldset class="checkbox">
    7170                        <legend>
    7271                                <?php bp_the_profile_field_name(); ?>
     
    8685                                'user_id' => $user_id
    8786                        ) ); ?>
    88 
    89                 </fieldset>
    9087
    9188                <?php
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-datebox.php

    r11617 r11618  
    8080                        'name' => bp_get_the_profile_field_input_name() . '_year'
    8181                ) ); ?>
    82 
    83                 <fieldset class="datebox">
    8482
    8583                        <legend>
     
    143141                        </div>
    144142
    145                 </fieldset>
    146143        <?php
    147144        }
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-multiselectbox.php

    r11617 r11618  
    7474                ) ); ?>
    7575
    76                 <label for="<?php bp_the_profile_field_input_name(); ?>[]">
     76                <legend id="<?php bp_the_profile_field_input_name(); ?>-1">
    7777                        <?php bp_the_profile_field_name(); ?>
    7878                        <?php bp_the_profile_field_required_label(); ?>
    79                 </label>
     79                </legend>
    8080
    8181                <?php
     
    8484                do_action( bp_get_the_profile_field_errors_action() ); ?>
    8585
    86                 <select <?php echo $this->get_edit_field_html_elements( $r ); ?> aria-describedby="<?php bp_the_profile_field_input_name(); ?>-3">
     86                <select <?php echo $this->get_edit_field_html_elements( $r ); ?> aria-labelledby="<?php bp_the_profile_field_input_name(); ?>-3">
    8787                        <?php bp_the_profile_field_options( array(
    8888                                'user_id' => $user_id
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-number.php

    r11617 r11618  
    6666                ) ); ?>
    6767
    68                 <label for="<?php bp_the_profile_field_input_name(); ?>">
     68                <legend id="<?php bp_the_profile_field_input_name(); ?>-1">
    6969                        <?php bp_the_profile_field_name(); ?>
    7070                        <?php bp_the_profile_field_required_label(); ?>
    71                 </label>
     71                </legend>
    7272
    7373                <?php
     
    7676                do_action( bp_get_the_profile_field_errors_action() ); ?>
    7777
    78                 <input <?php echo $this->get_edit_field_html_elements( $r ); ?> aria-describedby="<?php bp_the_profile_field_input_name(); ?>-3">
     78                <input <?php echo $this->get_edit_field_html_elements( $r ); ?> aria-labelledby="<?php bp_the_profile_field_input_name(); ?>-1">
    7979
    8080                <?php if ( bp_get_the_profile_field_description() ) : ?>
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-radiobutton.php

    r11617 r11618  
    6666                } ?>
    6767
    68                 <fieldset class="radio">
    69 
    7068                        <legend>
    7169                                <?php bp_the_profile_field_name(); ?>
     
    9189
    9290                        <?php endif; ?>
    93 
    94                 </fieldset>
    9591
    9692                <?php
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-selectbox.php

    r11617 r11618  
    6666                } ?>
    6767
    68                 <label for="<?php bp_the_profile_field_input_name(); ?>">
     68                <legend id="<?php bp_the_profile_field_input_name(); ?>-1">
    6969                        <?php bp_the_profile_field_name(); ?>
    7070                        <?php bp_the_profile_field_required_label(); ?>
    71                 </label>
     71                </legend>
    7272
    7373                <?php
     
    7676                do_action( bp_get_the_profile_field_errors_action() ); ?>
    7777
    78                 <select <?php echo $this->get_edit_field_html_elements( $raw_properties ); ?> aria-describedby="<?php bp_the_profile_field_input_name(); ?>-3">
     78                <select <?php echo $this->get_edit_field_html_elements( $raw_properties ); ?> aria-labelledby="<?php bp_the_profile_field_input_name(); ?>-1">
    7979                        <?php bp_the_profile_field_options( array( 'user_id' => $user_id ) ); ?>
    8080                </select>
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-textarea.php

    r11617 r11618  
    6464                $richtext_enabled = bp_xprofile_is_richtext_enabled_for_field(); ?>
    6565
    66                 <label for="<?php bp_the_profile_field_input_name(); ?>">
     66                <legend id="<?php bp_the_profile_field_input_name(); ?>-1">
    6767                        <?php bp_the_profile_field_name(); ?>
    6868                        <?php bp_the_profile_field_required_label(); ?>
    69                 </label>
     69                </legend>
    7070
    7171                <?php
     
    8282                        ?>
    8383
    84                         <textarea <?php echo $this->get_edit_field_html_elements( $r ); ?> aria-describedby="<?php bp_the_profile_field_input_name(); ?>-3"><?php bp_the_profile_field_edit_value(); ?></textarea>
     84                        <textarea <?php echo $this->get_edit_field_html_elements( $r ); ?> aria-labelledby="<?php bp_the_profile_field_input_name(); ?>-1"><?php bp_the_profile_field_edit_value(); ?></textarea>
    8585
    8686                        <?php
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-textbox.php

    r11617 r11618  
    6565                ) ); ?>
    6666
    67                 <label for="<?php bp_the_profile_field_input_name(); ?>">
     67                <legend id="<?php bp_the_profile_field_input_name(); ?>-1">
    6868                        <?php bp_the_profile_field_name(); ?>
    6969                        <?php bp_the_profile_field_required_label(); ?>
    70                 </label>
     70                </legend>
    7171
    7272                <?php
     
    7575                do_action( bp_get_the_profile_field_errors_action() ); ?>
    7676
    77                 <input <?php echo $this->get_edit_field_html_elements( $r ); ?> aria-describedby="<?php bp_the_profile_field_input_name(); ?>-3">
     77                <input <?php echo $this->get_edit_field_html_elements( $r ); ?> aria-labelledby="<?php bp_the_profile_field_input_name(); ?>-1">
    7878
    7979                <?php if ( bp_get_the_profile_field_description() ) : ?>
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-url.php

    r11617 r11618  
    6767                ) ); ?>
    6868
    69                 <label for="<?php bp_the_profile_field_input_name(); ?>">
     69                <legend id="<?php bp_the_profile_field_input_name(); ?>-1">
    7070                        <?php bp_the_profile_field_name(); ?>
    7171                        <?php bp_the_profile_field_required_label(); ?>
    72                 </label>
     72                </legend>
    7373
    7474                <?php
     
    7777                do_action( bp_get_the_profile_field_errors_action() ); ?>
    7878
    79                 <input <?php echo $this->get_edit_field_html_elements( $r ); ?> aria-describedby="<?php bp_the_profile_field_input_name(); ?>-3">
     79                <input <?php echo $this->get_edit_field_html_elements( $r ); ?> aria-labelledby="<?php bp_the_profile_field_input_name(); ?>-1">
    8080
    8181                <?php if ( bp_get_the_profile_field_description() ) : ?>
Note: See TracChangeset for help on using the changeset viewer.