Making WordPress.org


Ignore:
Timestamp:
02/26/2016 12:57:40 AM (10 years ago)
Author:
kovshenin
Message:

WordCamp.org: Reintegrate branch into trunk (wordcamp-payments)

Location:
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments

  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/metabox-status.php

    r2397 r2633  
    11<div id="submitpost" class="wcb submitbox">
    22    <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
    314        <div id="misc-publishing-actions">
    4 
    515            <div class="misc-pub-section">
    616                <?php _e( 'ID:', 'wordcamporg' ); ?>
     
    1727            </div>
    1828
     29            <?php if ( $post->post_status != 'auto-draft' ) : ?>
    1930            <div class="misc-pub-section">
    2031                <?php $this->render_text_input( $post, 'Date Vendor was Paid', 'date_vendor_paid', '', 'date', array(), $date_vendor_paid_readonly ); ?>
     
    2233
    2334            <div class="misc-pub-section misc-pub-post-status">
    24                 <label for="post_status"><?php _e( 'Status:' ) ?></label>
     35                <label>
     36                    <?php _e( 'Status:' ) ?>
    2537
    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>
    3667
    3768            <div class="clear"></div>
     
    4879                <?php if ( current_user_can( 'delete_post', $post->ID ) ) : ?>
    4980                    <a class="submitdelete deletion" href="<?php echo get_delete_post_link( $post->ID ); ?>">
    50                         <?php echo $delete_text; ?>
     81                        <?php _e( 'Delete', 'wordcamporg' ); ?>
    5182                    </a>
    5283                <?php endif; ?>
     
    5586            <div id="publishing-action">
    5687                <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' ) ); ?>
    5889            </div>
    5990
     
    6293        <?php else : ?>
    6394
    64             <p><?php _e( 'Paid requests are closed and cannot be edited.', 'wordcamporg' ); ?></p>
     95            <?php _e( 'This request can not be edited.', 'wordcamporg' ); ?>
    6596
    6697        <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.