Changeset 2646 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/reimbursement-request/metabox-status.php
- Timestamp:
- 02/26/2016 11:17:32 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-status.php
r2397 r2646 8 8 <div id="submitpost" class="wcb submitbox"> 9 9 <div id="minor-publishing"> 10 <?php if ( $ show_draft_button) : ?>11 12 13 <?php submit_button( __( 'Save Draft' ), 'secondary', 'wcbsi-save-draft', false ); ?>14 < /div>10 <?php if ( $current_user_can_edit_request && ! current_user_can( 'manage_network' ) ) : ?> 11 <div id="minor-publishing-actions"> 12 <div id="save-action"> 13 <?php submit_button( __( 'Save Draft', 'wordcamporg' ), 'button', 'wcb-save-draft', false ); ?> 14 <span class="spinner"></span> 15 15 </div> 16 <div class="clear"></div> 17 </div> 16 18 <?php endif; ?> 17 19 … … 42 44 43 45 <select name="post_status"> 44 <?php foreach ( $available_statuses as $status_slug => $status_name ) : ?> 45 <option value="<?php echo esc_attr( $status_slug ); ?>" <?php selected( $post->post_status, $status_slug ); ?> > 46 <?php echo esc_html( $status_name ); ?> 46 <?php foreach ( get_post_statuses() as $status ) : ?> 47 <?php $status = get_post_status_object( $status ); ?> 48 <option value="<?php echo esc_attr( $status->name ); ?>" <?php selected( $post->post_status, $status->name ); ?> > 49 <?php echo esc_html( $status->label ); ?> 47 50 </option> 48 51 <?php endforeach; ?> … … 51 54 <?php else : ?> 52 55 53 <?php echo esc_html( $status_name ); ?> 56 <?php $status = get_post_status_object( $post->post_status ); ?> 57 <?php echo esc_html( $status->label ); ?> 58 <input type="hidden" name="post_status" value="<?php echo esc_attr( $post->post_status ); ?>" /> 54 59 55 60 <?php endif; ?> 56 61 </span> 57 62 </label> 58 </div> <!-- .misc-pub-section --> 63 </div> 64 65 <div class="misc-pub-section hide-if-js wcb-mark-incomplete-notes"> 66 <label for="wcp_mark_incomplete_notes">What information is needed?</label> 67 <textarea id="wcp_mark_incomplete_notes" name="wcp_mark_incomplete_notes" class="large-text" rows="5" 68 placeholder="Need to attach receipt, etc" <?php echo $incomplete_readonly; ?>><?php echo esc_textarea( $incomplete_notes ); ?></textarea> 69 </div> 59 70 60 71 <div class="misc-pub-section misc-pub-total-amount-requested"> … … 76 87 77 88 <div id="major-publishing-actions"> 78 <?php if ( $show_submit_button ) : ?> 89 <?php if ( $current_user_can_edit_request ) : ?> 90 <?php if ( !empty( $submit_note ) ) : ?> 91 <div><?php echo $submit_note; ?></div> 92 <?php endif; ?> 79 93 80 94 <div id="delete-action"> 81 95 <?php if ( current_user_can( 'delete_post', $post->ID ) ) : ?> 82 96 <a class="submitdelete deletion" href="<?php echo get_delete_post_link( $post->ID ); ?>"> 83 <?php echo $delete_text; ?>97 <?php _e( 'Delete', 'wordcamporg' ); ?> 84 98 </a> 85 99 <?php endif; ?> … … 87 101 88 102 <div id="publishing-action"> 89 <input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr( $update_text ) ?>" /> 90 <?php submit_button( 91 $update_text, 92 'primary button-large', 93 'send-reimbursement-request', 94 false, 95 array( 'accesskey' => 'p' ) 96 ); ?> 103 <input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr( $submit_text ) ?>" /> 104 <?php submit_button( $submit_text, 'primary button-large', 'wcb-update', false, array( 'accesskey' => 'p' ) ); ?> 97 105 </div> 98 106 … … 101 109 <?php else : ?> 102 110 103 <p> 104 <?php _e( "Requests can't be edited after they've been submitted.", 'wordcamporg' ); ?> 105 </p> 111 <?php _e( 'This request can not be edited.', 'wordcamporg' ); ?> 106 112 107 113 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.