Changeset 6095 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/metabox-payment.php
- Timestamp:
- 11/09/2017 01:29:06 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/metabox-payment.php
r6094 r6095 1 1 <?php if ( current_user_can( 'view_wordcamp_payment_details' ) ) : ?> 2 2 3 <?php if ( ! empty( $box['args']['introduction_message'] ) ) : ?>4 <p>5 <?php echo wp_kses( $box['args']['introduction_message'], array( 'p' => array() ) ); ?>6 </p>7 <?php endif; ?>3 <?php if ( ! empty( $box['args']['introduction_message'] ) ) : ?> 4 <p> 5 <?php echo wp_kses( $box['args']['introduction_message'], array( 'p' => array() ) ); ?> 6 </p> 7 <?php endif; ?> 8 8 9 9 <p> … … 14 14 </p> 15 15 16 <fieldset <?php disabled( $box['args']['fields_enabled'], false ); ?> > 16 <fieldset <?php disabled( $box['args']['fields_enabled'], false ); ?> > 17 <table class="form-table"> 18 <?php if ( $box['args']['show_vendor_requested_payment_method'] ) : ?> 19 <?php $this->render_textarea_input( 20 $post, 21 esc_html__( 'Did the vendor request a specific type of payment?', 'wordcamporg' ), 22 'vendor_requested_payment_method', 23 esc_html__( 'Add any relevant details', 'wordcamporg' ), 24 false 25 ); ?> 26 <?php endif;?> 17 27 18 <table class="form-table"> 19 <?php if ( $box['args']['show_vendor_requested_payment_method'] ) : ?> 20 <?php $this->render_textarea_input( $post, esc_html__( 'Did the vendor request a specific type of payment?', 'wordcamporg' ), 'vendor_requested_payment_method', esc_html__( 'Add any relevant details', 'wordcamporg' ), false ); ?> 21 <?php endif;?> 22 23 <?php $this->render_radio_input( $post, esc_html__( 'Payment Method', 'wordcamporg' ), 'payment_method' ); ?> 24 </table> 25 26 <table id="payment_method_direct_deposit_fields" class="form-table payment_method_fields <?php echo 'Direct Deposit' == $selected_payment_method ? 'active' : 'hidden'; ?>"> 27 <?php $this->render_text_input( $post, esc_html__( 'Bank Name', 'wordcamporg' ), 'ach_bank_name' ); ?> 28 <?php $this->render_radio_input( $post, esc_html__( 'Account Type', 'wordcamporg' ), 'ach_account_type' ); ?> 29 <?php $this->render_text_input( $post, esc_html__( 'Routing Number', 'wordcamporg' ), 'ach_routing_number' ); ?> 30 <?php $this->render_text_input( $post, esc_html__( 'Account Number', 'wordcamporg' ), 'ach_account_number' ); ?> 31 <?php $this->render_text_input( $post, esc_html__( 'Account Holder Name', 'wordcamporg' ), 'ach_account_holder_name' ); ?> 32 </table> 33 34 <div id="payment_method_check_fields" class="form-table payment_method_fields <?php echo 'Check' == $selected_payment_method ? 'active' : 'hidden'; ?>"> 35 <table> 36 <?php $this->render_text_input( $post, esc_html__( 'Payable To', 'wordcamporg' ), 'payable_to' ); ?> 37 <?php $this->render_text_input( $post, esc_html__( 'Street Address', 'wordcamporg' ), 'check_street_address' ); ?> 38 <?php $this->render_text_input( $post, esc_html__( 'City', 'wordcamporg' ), 'check_city' ); ?> 39 <?php $this->render_text_input( $post, esc_html__( 'State / Province', 'wordcamporg' ), 'check_state' ); ?> 40 <?php $this->render_text_input( $post, esc_html__( 'ZIP / Postal Code', 'wordcamporg' ), 'check_zip_code' ); ?> 41 <?php $this->render_country_input( $post, esc_html__( 'Country', 'wordcamporg' ), 'check_country' ); ?> 42 </table> 43 </div> 44 45 <p id="payment_method_credit_card_fields" class="description payment_method_fields <?php echo 'Credit Card' == $selected_payment_method ? 'active' : 'hidden'; ?>"> 46 <?php esc_html_e( 'Please make sure that you upload an authorization form above, if one is required by the vendor.', 'wordcamporg' ); ?> 47 </p> 48 49 <div id="payment_method_wire_fields" class="form-table payment_method_fields <?php echo 'Wire' == $selected_payment_method ? 'active' : 'hidden'; ?>"> 50 <h3> 51 <?php esc_html_e( 'Beneficiary’s Bank', 'wordcamporg' ); ?> 52 </h3> 53 54 <table> 55 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s Bank Name', 'wordcamporg' ), 'bank_name' ); ?> 56 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s Bank Street Address', 'wordcamporg' ), 'bank_street_address' ); ?> 57 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s Bank City', 'wordcamporg' ), 'bank_city' ); ?> 58 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s Bank State / Province', 'wordcamporg' ), 'bank_state' ); ?> 59 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s Bank ZIP / Postal Code', 'wordcamporg' ), 'bank_zip_code' ); ?> 60 <?php $this->render_country_input( $post, esc_html__( 'Beneficiary’s Bank Country', 'wordcamporg' ), 'bank_country_iso3166' ); ?> 61 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s Bank SWIFT BIC', 'wordcamporg' ), 'bank_bic' ); ?> 62 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s Account Number or IBAN', 'wordcamporg' ), 'beneficiary_account_number' ); ?> 28 <?php $this->render_radio_input( $post, esc_html__( 'Payment Method', 'wordcamporg' ), 'payment_method' ); ?> 63 29 </table> 64 30 65 <hr /> 66 <h3> 67 <?php esc_html_e( 'Intermediary Bank', 'wordcamporg' ); ?> 68 </h3> 69 70 <?php $this->render_checkbox_input( 71 $post, 72 esc_html__( 'Send this payment through an intermediary bank', 'wordcamporg' ), 73 'needs_intermediary_bank' 74 ); ?> 75 76 <table id="intermediary_bank_fields"> 77 <?php $this->render_text_input( $post, esc_html__( 'Intermediary Bank Name', 'wordcamporg' ), 'interm_bank_name' ); ?> 78 <?php $this->render_text_input( $post, esc_html__( 'Intermediary Bank Street Address', 'wordcamporg' ), 'interm_bank_street_address' ); ?> 79 <?php $this->render_text_input( $post, esc_html__( 'Intermediary Bank City', 'wordcamporg' ), 'interm_bank_city' ); ?> 80 <?php $this->render_text_input( $post, esc_html__( 'Intermediary Bank State / Province', 'wordcamporg' ), 'interm_bank_state' ); ?> 81 <?php $this->render_text_input( $post, esc_html__( 'Intermediary Bank ZIP / Postal Code', 'wordcamporg' ), 'interm_bank_zip_code' ); ?> 82 <?php $this->render_country_input( $post, esc_html__( 'Intermediary Bank Country', 'wordcamporg' ), 'interm_bank_country_iso3166' ); ?> 83 <?php $this->render_text_input( $post, esc_html__( 'Intermediary Bank SWIFT BIC', 'wordcamporg' ), 'interm_bank_swift' ); ?> 84 <?php $this->render_text_input( $post, esc_html__( 'Intermediary Bank Account', 'wordcamporg' ), 'interm_bank_account' ); ?> 31 <table id="payment_method_direct_deposit_fields" class="form-table payment_method_fields <?php echo 'Direct Deposit' == $selected_payment_method ? 'active' : 'hidden'; ?>"> 32 <?php $this->render_text_input( $post, esc_html__( 'Bank Name', 'wordcamporg' ), 'ach_bank_name' ); ?> 33 <?php $this->render_radio_input( $post, esc_html__( 'Account Type', 'wordcamporg' ), 'ach_account_type' ); ?> 34 <?php $this->render_text_input( $post, esc_html__( 'Routing Number', 'wordcamporg' ), 'ach_routing_number' ); ?> 35 <?php $this->render_text_input( $post, esc_html__( 'Account Number', 'wordcamporg' ), 'ach_account_number' ); ?> 36 <?php $this->render_text_input( $post, esc_html__( 'Account Holder Name', 'wordcamporg' ), 'ach_account_holder_name' ); ?> 85 37 </table> 86 38 87 <hr /> 88 <h3> 89 <?php esc_html_e( 'Beneficiary', 'wordcamporg' ); ?> 90 </h3> 39 <div id="payment_method_check_fields" class="form-table payment_method_fields <?php echo 'Check' == $selected_payment_method ? 'active' : 'hidden'; ?>"> 40 <table> 41 <?php $this->render_text_input( $post, esc_html__( 'Payable To', 'wordcamporg' ), 'payable_to' ); ?> 42 <?php $this->render_text_input( $post, esc_html__( 'Street Address', 'wordcamporg' ), 'check_street_address' ); ?> 43 <?php $this->render_text_input( $post, esc_html__( 'City', 'wordcamporg' ), 'check_city' ); ?> 44 <?php $this->render_text_input( $post, esc_html__( 'State / Province', 'wordcamporg' ), 'check_state' ); ?> 45 <?php $this->render_text_input( $post, esc_html__( 'ZIP / Postal Code', 'wordcamporg' ), 'check_zip_code' ); ?> 46 <?php $this->render_country_input( $post, esc_html__( 'Country', 'wordcamporg' ), 'check_country' ); ?> 47 </table> 48 </div> 91 49 92 <table> 93 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s Name', 'wordcamporg' ), 'beneficiary_name' ); ?> 94 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s Street Address', 'wordcamporg' ), 'beneficiary_street_address' ); ?> 95 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s City', 'wordcamporg' ), 'beneficiary_city' ); ?> 96 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s State / Province', 'wordcamporg' ), 'beneficiary_state' ); ?> 97 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s ZIP / Postal Code', 'wordcamporg' ), 'beneficiary_zip_code' ); ?> 98 <?php $this->render_country_input( $post, esc_html__( 'Beneficiary’s Country', 'wordcamporg' ), 'beneficiary_country_iso3166' ); ?> 99 </table> 100 </div> 101 </fieldset> 50 <p id="payment_method_credit_card_fields" class="description payment_method_fields <?php echo 'Credit Card' == $selected_payment_method ? 'active' : 'hidden'; ?>"> 51 <?php esc_html_e( 'Please make sure that you upload an authorization form above, if one is required by the vendor.', 'wordcamporg' ); ?> 52 </p> 102 53 103 <p class="wcb-form-required"> 104 <?php esc_html_e( '* required', 'wordcamporg' ); ?> 105 </p> 54 <div id="payment_method_wire_fields" class="form-table payment_method_fields <?php echo 'Wire' == $selected_payment_method ? 'active' : 'hidden'; ?>"> 55 <h3> 56 <?php esc_html_e( 'Beneficiary’s Bank', 'wordcamporg' ); ?> 57 </h3> 58 59 <table> 60 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s Bank Name', 'wordcamporg' ), 'bank_name' ); ?> 61 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s Bank Street Address', 'wordcamporg' ), 'bank_street_address' ); ?> 62 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s Bank City', 'wordcamporg' ), 'bank_city' ); ?> 63 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s Bank State / Province', 'wordcamporg' ), 'bank_state' ); ?> 64 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s Bank ZIP / Postal Code', 'wordcamporg' ), 'bank_zip_code' ); ?> 65 <?php $this->render_country_input( $post, esc_html__( 'Beneficiary’s Bank Country', 'wordcamporg' ), 'bank_country_iso3166' ); ?> 66 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s Bank SWIFT BIC', 'wordcamporg' ), 'bank_bic' ); ?> 67 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s Account Number or IBAN', 'wordcamporg' ), 'beneficiary_account_number' ); ?> 68 </table> 69 70 <hr /> 71 72 <h3> 73 <?php esc_html_e( 'Intermediary Bank', 'wordcamporg' ); ?> 74 </h3> 75 76 <?php $this->render_checkbox_input( 77 $post, 78 esc_html__( 'Send this payment through an intermediary bank', 'wordcamporg' ), 79 'needs_intermediary_bank' 80 ); ?> 81 82 <table id="intermediary_bank_fields"> 83 <?php $this->render_text_input( $post, esc_html__( 'Intermediary Bank Name', 'wordcamporg' ), 'interm_bank_name' ); ?> 84 <?php $this->render_text_input( $post, esc_html__( 'Intermediary Bank Street Address', 'wordcamporg' ), 'interm_bank_street_address' ); ?> 85 <?php $this->render_text_input( $post, esc_html__( 'Intermediary Bank City', 'wordcamporg' ), 'interm_bank_city' ); ?> 86 <?php $this->render_text_input( $post, esc_html__( 'Intermediary Bank State / Province', 'wordcamporg' ), 'interm_bank_state' ); ?> 87 <?php $this->render_text_input( $post, esc_html__( 'Intermediary Bank ZIP / Postal Code', 'wordcamporg' ), 'interm_bank_zip_code' ); ?> 88 <?php $this->render_country_input( $post, esc_html__( 'Intermediary Bank Country', 'wordcamporg' ), 'interm_bank_country_iso3166' ); ?> 89 <?php $this->render_text_input( $post, esc_html__( 'Intermediary Bank SWIFT BIC', 'wordcamporg' ), 'interm_bank_swift' ); ?> 90 <?php $this->render_text_input( $post, esc_html__( 'Intermediary Bank Account', 'wordcamporg' ), 'interm_bank_account' ); ?> 91 </table> 92 93 <hr /> 94 95 <h3> 96 <?php esc_html_e( 'Beneficiary', 'wordcamporg' ); ?> 97 </h3> 98 99 <table> 100 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s Name', 'wordcamporg' ), 'beneficiary_name' ); ?> 101 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s Street Address', 'wordcamporg' ), 'beneficiary_street_address' ); ?> 102 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s City', 'wordcamporg' ), 'beneficiary_city' ); ?> 103 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s State / Province', 'wordcamporg' ), 'beneficiary_state' ); ?> 104 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s ZIP / Postal Code', 'wordcamporg' ), 'beneficiary_zip_code' ); ?> 105 <?php $this->render_country_input( $post, esc_html__( 'Beneficiary’s Country', 'wordcamporg' ), 'beneficiary_country_iso3166' ); ?> 106 </table> 107 </div> 108 </fieldset> 109 110 <p class="wcb-form-required"> 111 <?php esc_html_e( '* required', 'wordcamporg' ); ?> 112 </p> 106 113 107 114 <?php else : ?>
Note: See TracChangeset
for help on using the changeset viewer.