Making WordPress.org


Ignore:
Timestamp:
01/25/2019 03:51:59 AM (6 years ago)
Author:
iandunn
Message:

WordCamp Payments: Prevent sending invoices before contract is signed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/sponsor-invoice/metabox-status.php

    r4967 r8141  
    22
    33namespace WordCamp\Budgets\Sponsor_Invoices;
     4use WP_Post;
     5
    46defined( 'WPINC' ) or die();
     7
     8/**
     9 * @var WP_Post $post
     10 * @var string  $delete_text
     11 * @var array   $allowed_edit_statuses
     12 * @var bool    $current_user_can_edit_request
     13 * @var bool    $current_user_can_submit_request
     14 */
    515
    616?>
     
    4151
    4252    <div id="major-publishing-actions">
    43         <?php if ( $current_user_can_edit_request ) : ?>
     53        <?php if ( $current_user_can_edit_request && $current_user_can_submit_request ) : ?>
    4454
    4555            <div id="delete-action">
     
    6474            <div class="clear"></div>
    6575
     76        <?php elseif ( ! $current_user_can_submit_request ) : ?>
     77
     78            <p>
     79                <?php _e( "Invoices can't be submitted until your venue contract has been signed.", 'wordcamporg' ); ?>
     80            </p>
     81
    6682        <?php else : ?>
    6783
Note: See TracChangeset for help on using the changeset viewer.