Changeset 6067 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/reimbursement-request/metabox-general-information.php
- Timestamp:
- 11/01/2017 04:33:47 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/reimbursement-request/metabox-general-information.php
r2705 r6067 3 3 namespace WordCamp\Budgets\Reimbursement_Requests; 4 4 defined( 'WPINC' ) or die(); 5 6 /** @var \WP_Post $post */ 7 /** @var string $name_of_payer */ 8 /** @var array $available_currencies */ 9 /** @var string $selected_currency */ 10 /** @var array $available_reasons */ 11 /** @var string $selected_reason */ 12 /** @var string $other_reason */ 13 /** @var int $date_paid */ 5 14 6 15 ?> … … 31 40 32 41 <select id="_wcbrr_currency" name="_wcbrr_currency"> 33 <option value=" null-select-one">42 <option value=""> 34 43 <?php _e( '-- Select a Currency --', 'wordcamporg' ); ?> 35 44 </option> 36 <option value=" null-separator1"></option>45 <option value=""></option> 37 46 38 47 <?php foreach ( $available_currencies as $currency_key => $currency_name ) : ?> 39 48 <option value="<?php echo esc_attr( $currency_key ); ?>" <?php selected( $currency_key, $selected_currency ); ?> > 40 49 <?php echo esc_html( $currency_name ); ?> 41 <?php // todo - For better UX, prepend the code to the name (USD - United States Dollar), and sort by the code. Updating the sorting in get_currencies(). Also make this change other places this is used ?> 50 <?php if ( $currency_key ) : ?> 51 (<?php echo esc_html( $currency_key ); ?>) 52 <?php endif; ?> 42 53 </option> 43 54 <?php endforeach; ?> … … 53 64 54 65 <select id="_wcbrr_reason" name="_wcbrr_reason"> 55 <option value=" null-select-one">66 <option value=""> 56 67 <?php _e( '-- Select a Reason --', 'wordcamporg' ); ?> 57 68 </option> 58 <option value=" null-separator1"></option>69 <option value=""></option> 59 70 60 71 <?php foreach ( $available_reasons as $reason_key => $reason_name ) : ?>
Note: See TracChangeset
for help on using the changeset viewer.