| 1 |
<?php defined( 'ABSPATH' ) or exit; |
| 2 |
|
| 3 |
/** @var HTML_Forms\Form $form */ |
| 4 |
?> |
| 5 |
|
| 6 |
<h2><?php _e( 'Form Messages', 'html-forms' ); ?></h2> |
| 7 |
|
| 8 |
<table class="form-table hf-form-messages"> |
| 9 |
<tr valign="top"> |
| 10 |
<th scope="row"><label for="hf_form_success"><?php _e( 'Success', 'html-forms' ); ?></label></th> |
| 11 |
<td> |
| 12 |
<input type="text" class="widefat" id="hf_form_success" name="form[messages][success]" value="<?php echo esc_attr( $form->messages['success'] ); ?>" required /> |
| 13 |
<p class="description"><?php _e( 'The text that shows after a successful form submission.', 'html-forms' ); ?></p> |
| 14 |
</td> |
| 15 |
</tr> |
| 16 |
<tr valign="top"> |
| 17 |
<th scope="row"><label for="hf_form_invalid_email"><?php _e( 'Invalid email address', 'html-forms' ); ?></label></th> |
| 18 |
<td> |
| 19 |
<input type="text" class="widefat" id="hf_form_invalid_email" name="form[messages][invalid_email]" value="<?php echo esc_attr( $form->messages['invalid_email'] ); ?>" required /> |
| 20 |
<p class="description"><?php _e( 'The text that shows when an invalid email address is given.', 'html-forms' ); ?></p> |
| 21 |
</td> |
| 22 |
</tr> |
| 23 |
<tr valign="top"> |
| 24 |
<th scope="row"><label for="hf_form_required_field_missing"><?php _e( 'Required field missing', 'html-forms' ); ?></label></th> |
| 25 |
<td> |
| 26 |
<input type="text" class="widefat" id="hf_form_required_field_missing" name="form[messages][required_field_missing]" value="<?php echo esc_attr( $form->messages['required_field_missing'] ); ?>" required /> |
| 27 |
<p class="description"><?php _e( 'The text that shows when a required field for the selected list(s) is missing.', 'html-forms' ); ?></p> |
| 28 |
</td> |
| 29 |
</tr> |
| 30 |
|
| 31 |
<tr valign="top"> |
| 32 |
<th scope="row"><label for="hf_form_error"><?php _e( 'General error' ,'html-forms' ); ?></label></th> |
| 33 |
<td> |
| 34 |
<input type="text" class="widefat" id="hf_form_error" name="form[messages][error]" value="<?php echo esc_attr( $form->messages['error'] ); ?>" required /> |
| 35 |
<p class="description"><?php _e( 'The text that shows when a general error occured.', 'html-forms' ); ?></p> |
| 36 |
</td> |
| 37 |
</tr> |
| 38 |
|
| 39 |
<?php do_action ('hf_admin_output_form_messages', $form ); ?> |
| 40 |
|
| 41 |
<tr valign="top"> |
| 42 |
<th></th> |
| 43 |
<td> |
| 44 |
<p class="description"><?php printf( __( 'HTML tags like %s are allowed in the message fields.', 'html-forms' ), '<code>' . esc_html( '<strong><em><a>' ) . '</code>' ); ?></p> |
| 45 |
</td> |
| 46 |
</tr> |
| 47 |
|
| 48 |
</table> |
| 49 |
|
| 50 |
<?php submit_button(); ?> |
| 51 |
|