2019-09-28 03:41:19 +03:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** @var array $messages */
|
2019-10-02 00:17:02 +03:00
|
|
|
/** @var bool $complete */
|
2019-09-28 03:41:19 +03:00
|
|
|
?>
|
|
|
|
|
2019-10-02 00:17:02 +03:00
|
|
|
<p>
|
|
|
|
<a href="#">Manage an existing pledge</a>
|
|
|
|
</p>
|
|
|
|
|
2019-09-28 03:41:19 +03:00
|
|
|
<?php if ( ! empty( $messages ) ) : ?>
|
2019-10-02 00:17:02 +03:00
|
|
|
|
2019-09-28 03:41:19 +03:00
|
|
|
<?php foreach ( $messages as $message ) : ?>
|
|
|
|
<div class="notice notice-error">
|
|
|
|
<?php echo wpautop( $message ); ?>
|
|
|
|
</div>
|
|
|
|
<?php endforeach; ?>
|
2019-10-02 00:17:02 +03:00
|
|
|
|
2019-09-28 03:41:19 +03:00
|
|
|
<?php endif; ?>
|
|
|
|
|
2019-10-02 00:17:02 +03:00
|
|
|
<?php if ( true === $complete ) : ?>
|
2019-09-28 03:41:19 +03:00
|
|
|
|
2019-10-02 00:17:02 +03:00
|
|
|
<div class="notice notice-info">
|
|
|
|
<?php echo wpautop( __( 'Thank you for your submission. You will receive an email confirmation.', 'wporg' ) ); ?>
|
|
|
|
</div>
|
2019-09-28 03:41:19 +03:00
|
|
|
|
2019-10-02 00:17:02 +03:00
|
|
|
<?php else : ?>
|
2019-09-28 03:41:19 +03:00
|
|
|
|
2019-10-02 00:17:02 +03:00
|
|
|
<form action="" method="post">
|
2019-09-28 03:41:19 +03:00
|
|
|
<div>
|
2019-10-02 00:17:02 +03:00
|
|
|
<label for="5ftf-org-name">
|
|
|
|
<?php _e( 'Organization Name', 'wporg' ); ?>
|
2019-09-28 03:41:19 +03:00
|
|
|
</label>
|
2019-10-02 00:17:02 +03:00
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
id="5ftf-org-name"
|
|
|
|
name="org-name"
|
|
|
|
value="<?php echo esc_attr( filter_input( INPUT_POST, 'org-name' ) ); ?>"
|
|
|
|
required
|
|
|
|
/>
|
2019-09-28 03:41:19 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
2019-10-02 00:17:02 +03:00
|
|
|
Logo <strong>TODO</strong>
|
2019-09-28 03:41:19 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
2019-10-02 00:17:02 +03:00
|
|
|
<label for="5ftf-org-description">
|
|
|
|
<?php _e( 'Organization Blurb', 'wporg' ); ?>
|
2019-09-28 03:41:19 +03:00
|
|
|
</label>
|
2019-10-02 00:17:02 +03:00
|
|
|
<textarea
|
|
|
|
id="5ftf-org-description"
|
|
|
|
name="org-description"
|
|
|
|
required
|
|
|
|
>
|
|
|
|
<?php echo esc_html( filter_input( INPUT_POST, 'org-description' ) ); ?>
|
|
|
|
</textarea>
|
|
|
|
<span class="field-help">280 characters</span>
|
2019-09-28 03:41:19 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
2019-10-02 00:17:02 +03:00
|
|
|
<label for="5ftf-admin-wporg-username">
|
|
|
|
<?php _e( 'Admin Username', 'wporg' ); ?>
|
2019-09-28 03:41:19 +03:00
|
|
|
</label>
|
2019-10-02 00:17:02 +03:00
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
id="5ftf-admin-wporg-username"
|
|
|
|
name="admin-wporg-username"
|
|
|
|
value="<?php echo esc_attr( filter_input( INPUT_POST, 'admin-wporg-username' ) ); ?>"
|
|
|
|
required
|
|
|
|
/>
|
|
|
|
<span class="field-help">This user will be responsible for managing your organization's pledge.</span>
|
2019-09-28 03:41:19 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
2019-10-02 00:17:02 +03:00
|
|
|
<label for="5ftf-contributor-wporg-usernames">
|
|
|
|
<?php _e( 'Contributing Employee Usernames', 'wporg' ); ?>
|
2019-09-28 03:41:19 +03:00
|
|
|
</label>
|
2019-10-02 00:17:02 +03:00
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
id="5ftf-contributor-wporg-usernames"
|
|
|
|
name="contributor-wporg-usernames"
|
|
|
|
value="<?php echo esc_attr( filter_input( INPUT_POST, 'contributor-wporg-usernames' ) ); ?>"
|
|
|
|
required
|
|
|
|
/>
|
|
|
|
<span class="field-help">Separate each username with a comma.</span>
|
2019-09-28 03:41:19 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
2019-10-02 00:17:02 +03:00
|
|
|
<label for="5ftf-pledge-agreement">
|
2019-09-28 03:41:19 +03:00
|
|
|
<input
|
|
|
|
type="checkbox"
|
|
|
|
id="5ftf-pledge-agreement"
|
|
|
|
name="pledge-agreement"
|
|
|
|
required
|
|
|
|
/>
|
2019-10-02 00:17:02 +03:00
|
|
|
<?php _e( 'I agree', 'wporg' ); ?>
|
2019-09-28 03:41:19 +03:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
2019-10-02 00:17:02 +03:00
|
|
|
<div>
|
|
|
|
<input type="submit" id="5ftf-pledge-submit" name="action" class="button button-primary" value="<?php esc_attr_e( 'Submit Pledge', 'wporg' ); ?>" />
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<?php endif; ?>
|