mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-04 18:05:45 +03:00
Pledge form: Style the form
This commit is contained in:
parent
942de224c3
commit
5d76b97557
6 changed files with 200 additions and 35 deletions
|
@ -10,7 +10,7 @@ namespace WordPressDotOrg\FiveForTheFuture\View;
|
|||
|
||||
?>
|
||||
|
||||
<hr />
|
||||
<hr class="wp-block-separator has-alpha-channel-opacity is-style-wide"/>
|
||||
|
||||
<form class="pledge-form" id="5ftf-form-pledge-remove" action="" method="post">
|
||||
<h2><?php esc_html_e( 'Remove Pledge', 'wporg-5ftf' ); ?></h2>
|
||||
|
@ -24,8 +24,15 @@ namespace WordPressDotOrg\FiveForTheFuture\View;
|
|||
<input type="hidden" name="action" value="remove-pledge" />
|
||||
<input type="hidden" name="auth_token" value="<?php echo esc_attr( $auth_token ); ?>" />
|
||||
<input type="hidden" name="pledge_id" value="<?php echo absint( $pledge_id ); ?>" />
|
||||
<button type="submit" class="button button-danger" id="5ftf-pledge-remove">
|
||||
<?php esc_html_e( 'Remove Pledge', 'wporg-5ftf' ); ?>
|
||||
</button>
|
||||
|
||||
<div class="wp-block-button is-style-outline is-small is-destructive">
|
||||
<button
|
||||
type="submit"
|
||||
class="button button-danger wp-block-button__link"
|
||||
id="5ftf-pledge-remove"
|
||||
>
|
||||
<?php esc_html_e( 'Remove Pledge', 'wporg-5ftf' ); ?>
|
||||
</button>
|
||||
</div>
|
||||
</p>
|
||||
</form>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue