Making WordPress.org


Ignore:
Timestamp:
03/03/2016 07:33:42 PM (11 years ago)
Author:
iandunn
Message:

WordCamp Budgets: Make Vendor Payment and Payment Method fields required.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/input-country.php

    r2494 r2682  
    55                </label>
    66        </th>
     7
    78        <td>
    8                 <select id="<?php echo esc_attr( $name ); ?>" name="<?php echo esc_attr( $name ); ?>">
     9                <select
     10                        id="<?php echo esc_attr( $name ); ?>"
     11                        name="<?php echo esc_attr( $name ); ?>"
     12                        <?php __checked_selected_helper( $required, true, true, 'required' ); ?>
     13                >
    914                        <option value="">(None)</option>
    1015                        <?php foreach ( $options as $value => $option_label ) : ?>
    … …  
    1419                        <?php endforeach; ?>
    1520                </select>
     21
     22                <?php
     23                        if ( $required ) {
     24                                WordCamp_Budgets::render_form_field_required_indicator();
     25                        }
     26                ?>
    1627        </td>
    1728</tr>
Note: See TracChangeset for help on using the changeset viewer.