mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-10 04:25:44 +03:00
My Pledges: Require profile to be filled out before confirming a pledge (#127)
This will disable the "join organization" button until the profile is complete, and add a second warning message to explicitly tell the user why the button is disabled.
This commit is contained in:
parent
bdbf6d573e
commit
636753bb00
2 changed files with 17 additions and 1 deletions
|
@ -4,6 +4,7 @@ namespace WordPressDotOrg\FiveForTheFuture\View;
|
|||
|
||||
/**
|
||||
* @var WP_Post $contributor_post
|
||||
* @var bool $has_profile_data
|
||||
* @var WP_Post $pledge
|
||||
*/
|
||||
|
||||
|
@ -51,6 +52,9 @@ namespace WordPressDotOrg\FiveForTheFuture\View;
|
|||
class="button button-default"
|
||||
name="join_organization"
|
||||
value="Join Organization"
|
||||
<?php if ( ! $has_profile_data ) : ?>
|
||||
disabled="disabled"
|
||||
<?php endif; ?>
|
||||
/>
|
||||
|
||||
<input
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue