| 1 |
<div class="hf-small-margin"> |
| 2 |
<div id="hf-field-builder"></div> |
| 3 |
</div> |
| 4 |
|
| 5 |
<div class="hf-small-margin"> |
| 6 |
|
| 7 |
<div class="hf-row"> |
| 8 |
<div class="hf-col" style="min-width: 600px;"> |
| 9 |
<h4 style="margin-bottom: 0;"><label for="hf-form-editor"><?php _e( 'Form code', 'html-forms' ); ?></label></h4> |
| 10 |
<textarea id="hf-form-editor" class="widefat" name="form[markup]" cols="160" rows="20" autocomplete="false" autocorrect="false" autocapitalize="false" spellcheck="false"><?php echo htmlspecialchars( $form->markup, ENT_QUOTES, get_option( 'blog_charset' ) ); ?></textarea> |
| 11 |
<?php submit_button(); ?> |
| 12 |
</div> |
| 13 |
<div class="hf-col" style="min-width: 400px;"> |
| 14 |
<h4 style="margin-bottom: 0;"><label><?php _e( 'Form preview', 'html-forms' ); ?> <span class="dashicons dashicons-editor-help hf-tooltip" title="<?php esc_attr_e( 'The form may look slightly different than this when shown in a post, page or widget area.', 'html-forms' ); ?>"></span></label></h4> |
| 15 |
<iframe id="hf-form-preview" src="<?php echo esc_attr( $form_preview_url ); ?>"></iframe> |
| 16 |
</div> |
| 17 |
</div> |
| 18 |
|
| 19 |
</div> |
| 20 |
|
| 21 |
<input type="hidden" id="hf-required-fields" name="form[settings][required_fields]" value="<?php echo esc_attr( $form->settings['required_fields'] ); ?>" /> |
| 22 |
<input type="hidden" id="hf-email-fields" name="form[settings][email_fields]" value="<?php echo esc_attr( $form->settings['email_fields'] ); ?>" /> |
| 23 |
|