Changeset 2683
- Timestamp:
- 03/03/2016 07:39:17 PM (9 years ago)
- Location:
- sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/reimbursement-request.php
r2674 r2683 213 213 plugins_url( 'javascript/reimbursement-requests.js', __DIR__ ), 214 214 array( 'wordcamp-budgets', 'wcb-attached-files', 'jquery', 'underscore', 'wp-util' ), 215 1,215 2, 216 216 true 217 217 ); -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/javascript/reimbursement-requests.js
r2682 r2683 66 66 toggleOtherReasonDescription : function( event ) { 67 67 try { 68 var other CategoryDescription= $( '#_wcbrr_reason_other_container' );68 var otherReasonContainer = $( '#_wcbrr_reason_other_container' ); 69 69 70 70 if ( 'other' == $( this ).find( 'option:selected' ).val() ) { 71 $( otherCategoryDescription ).removeClass( 'hidden' ); 71 $( otherReasonContainer ).removeClass( 'hidden' ); 72 $( otherReasonContainer ).find( 'input' ).prop( 'required', true ); 72 73 } else { 73 $( otherCategoryDescription ).addClass( 'hidden' ); 74 $( otherReasonContainer ).addClass( 'hidden' ); 75 $( otherReasonContainer ).find( 'input' ).prop( 'required', false ); 74 76 } 75 77 … … 246 248 */ 247 249 toggleOtherCategoryInput : function( category ) { 250 var otherCategoryContainer = this.$( '#_wcbrr_category_other_container' ); 251 248 252 if ( 'other' === category ) { 249 this.$( '#_wcbrr_category_other_container' ).removeClass( 'hidden' ); 253 otherCategoryContainer.removeClass( 'hidden' ); 254 otherCategoryContainer.find( 'input' ).prop( 'required', true ); 250 255 } else { 251 this.$( '#_wcbrr_category_other_container' ).addClass( 'hidden' ); 256 otherCategoryContainer.addClass( 'hidden' ); 257 otherCategoryContainer.find( 'input' ).prop( 'required', false ); 252 258 } 253 259 }, -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/reimbursement-request/metabox-expenses.php
r2392 r2683 20 20 <?php submit_button( __( 'Add Another Expense', 'wordcamporg' ), 'secondary', 'wcbrr-add-another-expense' ); ?> 21 21 </fieldset> 22 23 <p class="wcb-form-required"> 24 <?php _e( '* required', 'wordcamporg' ); ?> 25 </p> -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/reimbursement-request/metabox-general-information.php
r2535 r2683 19 19 name="_wcbrr_name_of_payer" 20 20 value="<?php echo esc_attr( $name_of_payer ); ?>" 21 required 21 22 /> 23 24 <?php \WordCamp_Budgets::render_form_field_required_indicator(); ?> 22 25 </li> 23 26 … … 40 43 <?php endforeach; ?> 41 44 </select> 45 46 <?php \WordCamp_Budgets::render_form_field_required_indicator(); ?> 42 47 </li> 43 48 … … 59 64 <?php endforeach; ?> 60 65 </select> 66 67 <?php \WordCamp_Budgets::render_form_field_required_indicator(); ?> 61 68 </li> 62 69 … … 73 80 value="<?php echo esc_attr( $other_reason ); ?>" 74 81 /> 82 83 <?php \WordCamp_Budgets::render_form_field_required_indicator(); ?> 75 84 </li> 76 85 … … 87 96 </ul> 88 97 </fieldset> 98 99 <p class="wcb-form-required"> 100 <?php _e( '* required', 'wordcamporg' ); ?> 101 </p> -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/reimbursement-request/template-expense.php
r2392 r2683 31 31 <# } ); #> 32 32 </select> 33 34 <?php \WordCamp_Budgets::render_form_field_required_indicator(); ?> 33 35 </li> 34 36 … … 46 48 value="{{data._wcbrr_category_other}}" 47 49 /> 50 51 <?php \WordCamp_Budgets::render_form_field_required_indicator(); ?> 48 52 </li> 49 53 … … 59 63 name="_wcbrr_vendor_name_{{data.id}}" 60 64 value="{{data._wcbrr_vendor_name}}" 65 required 61 66 /> 67 68 <?php \WordCamp_Budgets::render_form_field_required_indicator(); ?> 62 69 </li> 63 70 … … 73 80 name="_wcbrr_description_{{data.id}}" 74 81 maxlength="75" 82 required 75 83 >{{data._wcbrr_description}}</textarea> 84 85 <?php \WordCamp_Budgets::render_form_field_required_indicator(); ?> 76 86 </li> 77 87 … … 87 97 name="_wcbrr_date_{{data.id}}" 88 98 value="{{data._wcbrr_date}}" 99 required 89 100 /> 101 102 <?php \WordCamp_Budgets::render_form_field_required_indicator(); ?> 90 103 </li> 91 104 … … 102 115 name="_wcbrr_amount_{{data.id}}" 103 116 value="{{data._wcbrr_amount}}" 117 required 104 118 /> 119 120 <?php \WordCamp_Budgets::render_form_field_required_indicator(); ?> 105 121 106 122 <p class="description"> … … 123 139 name="_wcbrr_vendor_location_{{data.id}}" 124 140 value="local" 141 required 125 142 {{checked}} 126 143 /> … … 137 154 name="_wcbrr_vendor_location_{{data.id}}" 138 155 value="online" 156 required 139 157 {{checked}} 140 158 /> 141 159 <?php _e( 'Not Local / Online', 'wordcamporg' ); ?> 142 160 </label> 161 162 <?php \WordCamp_Budgets::render_form_field_required_indicator(); ?> 143 163 </div> 144 164 </li>
Note: See TracChangeset
for help on using the changeset viewer.