| 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( 'Hide form after a successful sign-up?', 'html-forms' ); ?></th> |
| 7 |
<td class="nowrap"> |
| 8 |
<label> |
| 9 |
<input type="radio" name="form[settings][hide_after_success]" value="1" <?php checked( $form->settings['hide_after_success'], 1 ); ?> />‏ |
| 10 |
<?php _e( 'Yes' ); ?> |
| 11 |
</label> |
| 12 |
<label> |
| 13 |
<input type="radio" name="form[settings][hide_after_success]" value="0" <?php checked( $form->settings['hide_after_success'], 0 ); ?> />‏ |
| 14 |
<?php _e( 'No' ); ?> |
| 15 |
</label> |
| 16 |
<p class="help"> |
| 17 |
<?php _e( 'Select "yes" to hide the form fields after a successful sign-up.', 'html-forms' ); ?> |
| 18 |
</p> |
| 19 |
</td> |
| 20 |
</tr> |
| 21 |
|
| 22 |
<tr valign="top"> |
| 23 |
<th scope="row"><label for="hf_form_redirect"><?php _e( 'Redirect to URL after successful sign-ups', 'html-forms' ); ?></label></th> |
| 24 |
<td> |
| 25 |
<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'] ); ?>" /> |
| 26 |
<p class="help"><?php _e( 'Leave empty or enter <code>0</code> for no redirect. Otherwise, use complete (absolute) URLs, including <code>http://</code>.', 'html-forms' ); ?></p> |
| 27 |
</td> |
| 28 |
</tr> |
| 29 |
</table> |
| 30 |
|
| 31 |
<?php submit_button(); ?> |