Pledge form: Add a blurb for the "Agree" checkbox (#44)

When submitting the form for a new pledge, the submitter must check a box to acknowledge that they understand and agree with the program expectations. The agreement blurb links to a separate page on the 5ftF site outlining what those expectations are.

Fixes #40
This commit is contained in:
Corey McKrill 2019-10-23 13:47:15 -07:00 committed by GitHub
parent 427cacc87c
commit 65bd3ad5af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,15 @@ namespace WordPressDotOrg\FiveForTheFuture\View;
<div class="form-field form-field__agree"> <div class="form-field form-field__agree">
<p> <p>
<!-- Statement of agreement to pledge, link to further info maybe? --> <?php
printf(
wp_kses_post( '
I understand and agree to the <a href="%s">expectations</a> for
inclusion in the Five for the Future acknowledgement program.
' ),
'https://wordpress.org/five-for-the-future/expectations/' // TODO Change this URL?
);
?>
</p> </p>
<input <input
@ -18,6 +26,6 @@ namespace WordPressDotOrg\FiveForTheFuture\View;
<?php checked( $data['pledge-agreement'] ); ?> <?php checked( $data['pledge-agreement'] ); ?>
/> />
<label for="5ftf-pledge-agreement"> <label for="5ftf-pledge-agreement">
<?php esc_html_e( 'I agree', 'wordpressorg' ); ?> <?php esc_html_e( 'Yes', 'wordpressorg' ); ?>
</label> </label>
</div> </div>