| 1 |
<h2><?php echo __( 'Form Settings', 'html-forms' ); ?></h2> |
| 2 |
|
| 3 |
<table class="form-table"> |
| 4 |
|
| 5 |
<tr valign="top"> |
| 6 |
<th scope="row"><?php _e( 'Save form submissions?', 'html-forms' ); ?></th> |
| 7 |
<td> |
| 8 |
<label><input type="radio" name="form[settings][save_submissions]" value="1" <?php checked( $form->settings['save_submissions'], 1 ); ?>> <?php _e( 'Yes' ); ?></label> |
| 9 |
<label><input type="radio" name="form[settings][save_submissions]" value="0" <?php checked( $form->settings['save_submissions'], 0 ); ?>> <?php _e( 'No' ); ?></label> |
| 10 |
|
| 11 |
<p class="help"><?php _e( 'Select "yes" to store successful form submissions.', 'html-forms' ); ?></p> |
| 12 |
</td> |
| 13 |
</tr> |
| 14 |
|
| 15 |
<tr valign="top"> |
| 16 |
<th scope="row"><?php _e( 'Hide form after a successful sign-up?', 'html-forms' ); ?></th> |
| 17 |
<td class="nowrap"> |
| 18 |
<label> |
| 19 |
<input type="radio" name="form[settings][hide_after_success]" value="1" <?php checked( $form->settings['hide_after_success'], 1 ); ?> />‏ |
| 20 |
<?php _e( 'Yes' ); ?> |
| 21 |
</label> |
| 22 |
<label> |
| 23 |
<input type="radio" name="form[settings][hide_after_success]" value="0" <?php checked( $form->settings['hide_after_success'], 0 ); ?> />‏ |
| 24 |
<?php _e( 'No' ); ?> |
| 25 |
</label> |
| 26 |
<p class="help"> |
| 27 |
<?php _e( 'Select "yes" to hide the form fields after a successful sign-up.', 'html-forms' ); ?> |
| 28 |
</p> |
| 29 |
</td> |
| 30 |
</tr> |
| 31 |
|
| 32 |
<tr valign="top"> |
| 33 |
<th scope="row"><label for="hf_form_redirect"><?php _e( 'Redirect to URL after successful sign-ups', 'html-forms' ); ?></label></th> |
| 34 |
<td> |
| 35 |
<input type="text" class="widefat" name="form[settings][redirect_url]" id="hf_form_redirect" placeholder="<?php printf( __( 'Example: %s', 'html-forms' ), esc_attr( site_url( '/thank-you/' ) ) ); ?>" value="<?php echo esc_attr( $form->settings['redirect_url'] ); ?>" /> |
| 36 |
<p class="help"> |
| 37 |
<?php _e( 'Leave empty or enter <code>0</code> for no redirect. Otherwise, use complete (absolute) URLs, including <code>http://</code>.', 'html-forms' ); ?> |
| 38 |
</p> |
| 39 |
<p class="help"> |
| 40 |
<?php _e( 'You can use the following variables in the redirect URL: ', 'html-forms' ); ?><span class="hf-field-names"></span> |
| 41 |
</p> |
| 42 |
</td> |
| 43 |
</tr> |
| 44 |
|
| 45 |
<?php |
| 46 |
/** |
| 47 |
* Runs after the form settings are printed. |
| 48 |
* |
| 49 |
* @param $form |
| 50 |
*/ |
| 51 |
do_action( 'hf_output_form_settings', $form ); ?> |
| 52 |
|
| 53 |
</table> |
| 54 |
|
| 55 |
<?php submit_button(); ?> |
| 56 |
|