Changeset 2633 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/metabox-status.php
- Timestamp:
- 02/26/2016 12:57:40 AM (10 years ago)
- Location:
- sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
views/payment-request/metabox-status.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments
-
Property
svn:mergeinfo
set to
/sites/branches/wcb-payment-request-statuses/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments merged eligible
-
Property
svn:mergeinfo
set to
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/metabox-status.php
r2397 r2633 1 1 <div id="submitpost" class="wcb submitbox"> 2 2 <div id="minor-publishing"> 3 4 <?php if ( $current_user_can_edit_request && ! current_user_can( 'manage_network' ) ) : ?> 5 <div id="minor-publishing-actions"> 6 <div id="save-action"> 7 <?php submit_button( __( 'Save Draft', 'wordcamporg' ), 'button', 'wcb-save-draft', false ); ?> 8 <span class="spinner"></span> 9 </div> 10 <div class="clear"></div> 11 </div> 12 <?php endif; ?> 13 3 14 <div id="misc-publishing-actions"> 4 5 15 <div class="misc-pub-section"> 6 16 <?php _e( 'ID:', 'wordcamporg' ); ?> … … 17 27 </div> 18 28 29 <?php if ( $post->post_status != 'auto-draft' ) : ?> 19 30 <div class="misc-pub-section"> 20 31 <?php $this->render_text_input( $post, 'Date Vendor was Paid', 'date_vendor_paid', '', 'date', array(), $date_vendor_paid_readonly ); ?> … … 22 33 23 34 <div class="misc-pub-section misc-pub-post-status"> 24 <label for="post_status"><?php _e( 'Status:' ) ?></label> 35 <label> 36 <?php _e( 'Status:' ) ?> 25 37 26 <span id="post-status-display"> 27 <?php if ( 'incomplete' == $post->post_status ) : ?> 28 <?php _e( 'Incomplete', 'wordcamporg' ); ?> 29 <?php elseif ( 'paid' == $post->post_status ) : ?> 30 <?php _e( 'Paid' ); ?> 31 <?php else : ?> 32 <?php _e( 'Not Paid' ); ?> 33 <?php endif; ?> 34 </span> 35 </div> <!-- .misc-pub-section --> 38 <span id="post-status-display"> 39 <?php if ( current_user_can( 'manage_network' ) ) : ?> 40 41 <select name="post_status"> 42 <?php foreach ( self::get_post_statuses() as $status ) : ?> 43 <?php $status = get_post_status_object( $status ); ?> 44 <option value="<?php echo esc_attr( $status->name ); ?>" <?php selected( $post->post_status, $status->name ); ?> > 45 <?php echo esc_html( $status->label ); ?> 46 </option> 47 <?php endforeach; ?> 48 </select> 49 50 <?php else : ?> 51 52 <?php $status = get_post_status_object( $post->post_status ); ?> 53 <?php echo esc_html( $status->label ); ?> 54 <input type="hidden" name="post_status" value="<?php echo esc_attr( $post->post_status ); ?>" /> 55 56 <?php endif; ?> 57 </span> 58 </label> 59 </div> 60 <?php endif; ?> 61 62 <div class="misc-pub-section hide-if-js wcb-mark-incomplete-notes"> 63 <label for="wcp_mark_incomplete_notes">What information is needed?</label> 64 <textarea id="wcp_mark_incomplete_notes" name="wcp_mark_incomplete_notes" class="large-text" rows="5" 65 placeholder="Need to attach receipt, etc" <?php echo $incomplete_readonly; ?>><?php echo esc_textarea( $incomplete_notes ); ?></textarea> 66 </div> 36 67 37 68 <div class="clear"></div> … … 48 79 <?php if ( current_user_can( 'delete_post', $post->ID ) ) : ?> 49 80 <a class="submitdelete deletion" href="<?php echo get_delete_post_link( $post->ID ); ?>"> 50 <?php echo $delete_text; ?>81 <?php _e( 'Delete', 'wordcamporg' ); ?> 51 82 </a> 52 83 <?php endif; ?> … … 55 86 <div id="publishing-action"> 56 87 <input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr( $submit_text ) ?>" /> 57 <?php submit_button( $submit_text, 'primary button-large', ' save', false, array( 'accesskey' => 'p' ) ); ?>88 <?php submit_button( $submit_text, 'primary button-large', 'wcb-update', false, array( 'accesskey' => 'p' ) ); ?> 58 89 </div> 59 90 … … 62 93 <?php else : ?> 63 94 64 < p><?php _e( 'Paid requests are closed and cannot be edited.', 'wordcamporg' ); ?></p>95 <?php _e( 'This request can not be edited.', 'wordcamporg' ); ?> 65 96 66 97 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.