| 1 |
<?php wp_nonce_field( 'frm_save_form_nonce', 'frm_save_form' ); ?> |
| 2 |
<input type="hidden" name="status" value="<?php echo esc_attr( $values['status'] ); ?>" /> |
| 3 |
<input type="hidden" name="new_status" value="" /> |
| 4 |
|
| 5 |
<div id="frm_form_editor_container"> |
| 6 |
|
| 7 |
<div class="postbox"> |
| 8 |
<div id="titlediv" class="inside"> |
| 9 |
<input type="text" name="name" value="<?php echo esc_attr( $form->name ); ?>" id="title" placeholder="<?php esc_attr_e( 'Enter title here', 'formidable' ); ?>" /> |
| 10 |
</div> |
| 11 |
|
| 12 |
<div class="frm_no_fields <?php echo ( isset( $values['fields'] ) && ! empty( $values['fields'] ) ) ? 'frm_hidden' : ''; ?>"> |
| 13 |
<div class="alignleft sketch1"> |
| 14 |
<img src="<?php echo esc_url( FrmAppHelper::plugin_url() . '/images/sketch_arrow1.png' ); ?>" alt="" /> |
| 15 |
</div> |
| 16 |
<div class="alignleft sketch1_text"> |
| 17 |
<?php esc_html_e( '1. Name your form', 'formidable' ) ?> |
| 18 |
</div> |
| 19 |
|
| 20 |
<div class="alignright sketch2"> |
| 21 |
<?php esc_html_e( '2. Click or drag a field to add it to your form', 'formidable' ); ?> |
| 22 |
<div class="clear"></div> |
| 23 |
<img src="<?php echo esc_url( FrmAppHelper::plugin_url() . '/images/sketch_arrow2.png' ); ?>" alt="" /> |
| 24 |
</div> |
| 25 |
<div class="clear"></div> |
| 26 |
|
| 27 |
<div class="frm_drag_inst"><?php esc_html_e( 'Add Fields Here', 'formidable' ) ?></div> |
| 28 |
|
| 29 |
<div class="alignleft sketch3"> |
| 30 |
<div class="alignright"><?php esc_html_e( '3. Save your form', 'formidable' ) ?></div> |
| 31 |
<img src="<?php echo esc_url( FrmAppHelper::plugin_url() . '/images/sketch_arrow3.png' ); ?>" alt="" /> |
| 32 |
</div> |
| 33 |
<div class="clear"></div> |
| 34 |
</div> |
| 35 |
<ul id="new_fields" class="frm_sorting inside"> |
| 36 |
<?php |
| 37 |
if ( isset( $values['fields'] ) && ! empty( $values['fields'] ) ) { |
| 38 |
$values['count'] = 0; |
| 39 |
foreach ( $values['fields'] as $field ) { |
| 40 |
$values['count']++; |
| 41 |
FrmFieldsController::load_single_field( $field, $values ); |
| 42 |
unset( $field ); |
| 43 |
} |
| 44 |
} |
| 45 |
?> |
| 46 |
</ul> |
| 47 |
<input type="hidden" name="frm_end" value="1" /> |
| 48 |
</div> |
| 49 |
|
| 50 |
</div> |
| 51 |
|