Making WordPress.org


Ignore:
Timestamp:
07/10/2018 09:33:48 PM (8 years ago)
Author:
coreymckrill
Message:

WordCamp Tickets: Add required attribute to allergy, accessibility, CoC fields

Having the required attribute on the input fields helps ensure that the
Stripe checkout overlay won't appear if required fields haven't been filled
out yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/camptix-tweaks/addons/code-of-conduct.php

    r7228 r7414  
    6666
    6767            <td class="tix-right">
    68                 <label><input name="tix_attendee_info[<?php echo esc_attr( $i ); ?>][<?php echo esc_attr( self::SLUG ); ?>]" type="checkbox" <?php checked( $current_data[ self::SLUG ] ); ?> /> <?php echo esc_html_x( 'Yes', 'ticket registration option', 'wordcamporg' ); ?></label>
     68                <label>
     69                    <input name="tix_attendee_info[<?php echo esc_attr( $i ); ?>][<?php echo esc_attr( self::SLUG ); ?>]" type="checkbox" <?php checked( $current_data[ self::SLUG ] ); ?> required />
     70                    <?php echo esc_html_x( 'Yes', 'ticket registration option', 'wordcamporg' ); ?>
     71                </label>
    6972            </td>
    7073        </tr>
Note: See TracChangeset for help on using the changeset viewer.