mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-17 00:43:43 +03:00

When a pledge is selected but the auth token is missing/incorrect, show the email form. Like on the pledge page, submitting the correct email will trigger a new auth token + link to be emailed to the pledge manager. This makes for a clearer path for re-requesting a valid link. Fixes #114
24 lines
978 B
PHP
24 lines
978 B
PHP
<?php
|
|
|
|
namespace WordPressDotOrg\FiveForTheFuture\View;
|
|
use function WordPressDotOrg\FiveForTheFuture\get_views_path;
|
|
|
|
defined( 'WPINC' ) || die();
|
|
|
|
?>
|
|
<script type="text/template" id="tmpl-5ftf-send-link-dialog">
|
|
<div id="send-link-dialog-bg" class="pledge-dialog__background" hidden data-no-inert></div>
|
|
<div id="send-link-dialog" role="dialog" class="pledge-dialog" hidden tabindex="-1" aria-label="<?php esc_attr_e( 'Request to edit this pledge', 'wporg-5ftf' ); ?>">
|
|
<p>
|
|
<?php esc_html_e( 'Only pledge admins can edit pledges.', 'wporg-5ftf' ); ?>
|
|
</p>
|
|
|
|
<p>
|
|
<?php esc_html_e( "If you're the admin, enter your email address and a confirmation link will be sent to you.", 'wporg-5ftf' ); ?>
|
|
</p>
|
|
|
|
<?php require get_views_path() . 'form-request-manage-link.php'; ?>
|
|
<button type="button" class="button button-link pledge-dialog__close" aria-label="Close"><span class="dashicons dashicons-no-alt" aria-hidden="true"></span></button></div>
|
|
</div>
|
|
</script>
|