Manage Pledge: Add the admin email field

This commit is contained in:
Kelly Dwan 2019-11-25 16:41:35 -05:00
parent 544fe39199
commit be84e9dc57
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D
3 changed files with 12 additions and 4 deletions

View file

@ -23,6 +23,7 @@ require __DIR__ . '/partial-result-messages.php';
wp_nonce_field( 'manage_pledge_' . $pledge_id ); wp_nonce_field( 'manage_pledge_' . $pledge_id );
require get_views_path() . 'inputs-pledge-org-info.php'; require get_views_path() . 'inputs-pledge-org-info.php';
require get_views_path() . 'inputs-pledge-org-email.php';
?> ?>
<div> <div>

View file

@ -25,9 +25,16 @@ use WP_Post;
aria-describedby="5ftf-pledge-email-help" aria-describedby="5ftf-pledge-email-help"
<?php echo $readonly ? 'readonly' : ''; ?> <?php echo $readonly ? 'readonly' : ''; ?>
/> />
<p id="5ftf-pledge-email-help"> <div id="5ftf-pledge-email-help">
<p>
<?php esc_html_e( 'This address will be used to confirm your organizations contribution profile, and later manage any changes. Please make sure that its a group address (e.g., wp-contributors@example.com) so that it persists across employee transitions.', 'wporg-5ftf' ); ?> <?php esc_html_e( 'This address will be used to confirm your organizations contribution profile, and later manage any changes. Please make sure that its a group address (e.g., wp-contributors@example.com) so that it persists across employee transitions.', 'wporg-5ftf' ); ?>
</p> </p>
<?php if ( ! empty( $data['org-pledge-email'] ) ) : ?>
<p>
<?php esc_html_e( 'If you change this email, you will need to confirm the new email. Your pledge will be unpublished until the new email is confirmed.', 'wporg-5ftf' ); ?>
</p>
<?php endif; ?>
</div>
<?php if ( is_admin() ) : ?> <?php if ( is_admin() ) : ?>
<?php if ( $data['pledge-email-confirmed'] ) : ?> <?php if ( $data['pledge-email-confirmed'] ) : ?>

View file

@ -29,7 +29,7 @@
height: auto; height: auto;
} }
> p { [id*="help"] p {
margin-top: ms(-5); margin-top: ms(-5);
font-size: ms(-2); font-size: ms(-2);
} }