mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-22 11:03:43 +03:00
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:
parent
427cacc87c
commit
65bd3ad5af
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue