| @@ -2,8 +2,18 @@ | ||
| 2 | 2 | |
| 3 | 3 | <table class="form-table"> |
| 4 | 4 | |
| 5 | 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="description"><?php _e( 'Select "yes" to store successful form submissions.', 'html-forms' ); ?></p> | |
| 12 | + </td> | |
| 13 | + </tr> | |
| 14 | + | |
| 15 | + <tr valign="top"> | |
| 6 | 16 | <th scope="row"><?php _e( 'Hide form after a successful sign-up?', 'html-forms' ); ?></th> |
| 7 | 17 | <td class="nowrap"> |
| 8 | 18 | <label> |
| 9 | 19 | <input type="radio" name="form[settings][hide_after_success]" value="1" <?php checked( $form->settings['hide_after_success'], 1 ); ?> />‏ |
| @@ -12,9 +22,9 @@ | ||
| 12 | 22 | <label> |
| 13 | 23 | <input type="radio" name="form[settings][hide_after_success]" value="0" <?php checked( $form->settings['hide_after_success'], 0 ); ?> />‏ |
| 14 | 24 | <?php _e( 'No' ); ?> |
| 15 | 25 | </label> |
| 16 | - <p class="help"> | |
| 26 | + <p class="description"> | |
| 17 | 27 | <?php _e( 'Select "yes" to hide the form fields after a successful sign-up.', 'html-forms' ); ?> |
| 18 | 28 | </p> |
| 19 | 29 | </td> |
| 20 | 30 | </tr> |
| @@ -22,19 +32,24 @@ | ||
| 22 | 32 | <tr valign="top"> |
| 23 | 33 | <th scope="row"><label for="hf_form_redirect"><?php _e( 'Redirect to URL after successful sign-ups', 'html-forms' ); ?></label></th> |
| 24 | 34 | <td> |
| 25 | 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'] ); ?>" /> |
| 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> | |
| 36 | + <p class="description"> | |
| 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="description"> | |
| 40 | + <?php _e( 'You can use the following variables in the redirect URL: ', 'html-forms' ); ?><span class="hf-field-names"></span> | |
| 41 | + </p> | |
| 27 | 42 | </td> |
| 28 | 43 | </tr> |
| 29 | 44 | |
| 30 | - <?php | |
| 45 | + <?php | |
| 31 | 46 | /** |
| 32 | 47 | * Runs after the form settings are printed. |
| 33 | - * | |
| 48 | + * | |
| 34 | 49 | * @param $form |
| 35 | 50 | */ |
| 36 | 51 | do_action( 'hf_output_form_settings', $form ); ?> |
| 37 | - | |
| 52 | + | |
| 38 | 53 | </table> |
| 39 | 54 | |
| 40 | 55 | <?php submit_button(); ?> |