Refactor forms to be able to reuse inputs in multiple contexts

This commit is contained in:
Corey McKrill 2019-10-03 17:22:35 -07:00
parent 213531ca08
commit 9199e44c66
No known key found for this signature in database
GPG key ID: C2C0746F7BF17E38
13 changed files with 231 additions and 185 deletions

View file

@ -0,0 +1,22 @@
<?php
namespace WordPressDotOrg\FiveForTheFuture\View;
/** @var bool $editable */
/** @var array $data */
?>
<div class="form-field">
<p>
<!-- Statement of agreement to pledge, link to further info maybe? -->
</p>
<input
type="checkbox"
id="5ftf-pledge-agree"
name="pledge-agree"
required
/>
<label for="5ftf-pledge-agree">
<?php esc_html_e( 'I agree', 'wordpressorg' ); ?>
</label>
</div>