| 1 |
<div class="wrap"> |
| 2 |
<h2><?php echo esc_html( $form->is_template ? __( 'Templates', 'formidable' ) : __( 'Build', 'formidable' ) ); ?> |
| 3 |
<a href="?page=formidable&frm_action=new" class="add-new-h2"><?php esc_html_e( 'Add New', 'formidable' ); ?></a> |
| 4 |
</h2> |
| 5 |
|
| 6 |
<?php |
| 7 |
// Add form messages |
| 8 |
require( FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php' ); |
| 9 |
?> |
| 10 |
|
| 11 |
<div id="poststuff"> |
| 12 |
|
| 13 |
<div id="post-body" class="metabox-holder columns-2"> |
| 14 |
<div id="post-body-content"> |
| 15 |
<?php |
| 16 |
|
| 17 |
// Add form nav |
| 18 |
if ( ! $values['is_template'] ) { |
| 19 |
FrmAppController::get_form_nav( $id, true, 'hide' ); |
| 20 |
} |
| 21 |
|
| 22 |
?> |
| 23 |
<div class="frm_form_builder with_frm_style"> |
| 24 |
|
| 25 |
<p class="frm_hidden frm-no-margin"> |
| 26 |
<input type="button" value="<?php esc_attr_e( 'Update', 'formidable' ) ?>" class="frm_submit_<?php echo ( isset( $values['ajax_load'] ) && $values['ajax_load'] ) ? '' : 'no_'; ?>ajax button-primary" /> |
| 27 |
<span class="frm-loading-img"></span> |
| 28 |
</p> |
| 29 |
|
| 30 |
<form method="post" id="frm_build_form"> |
| 31 |
<input type="hidden" name="frm_action" value="update" /> |
| 32 |
<input type="hidden" name="action" value="update" /> |
| 33 |
<input type="hidden" name="id" id="form_id" value="<?php echo (int) $id; ?>" /> |
| 34 |
|
| 35 |
<?php require( FrmAppHelper::plugin_path() . '/classes/views/frm-forms/form.php' ); ?> |
| 36 |
|
| 37 |
<p> |
| 38 |
<input type="button" value="<?php esc_attr_e( 'Update', 'formidable' ) ?>" class="frm_submit_<?php echo ( isset( $values['ajax_load'] ) && $values['ajax_load'] ) ? '' : 'no_'; ?>ajax button-primary" /> |
| 39 |
<span class="frm-loading-img"></span> |
| 40 |
</p> |
| 41 |
</form> |
| 42 |
</div> |
| 43 |
</div> |
| 44 |
<?php require( FrmAppHelper::plugin_path() . '/classes/views/frm-forms/add_field_links.php' ); ?> |
| 45 |
</div> |
| 46 |
</div> |
| 47 |
</div> |
| 48 |
|