| 1 |
<div class="wrap"> |
| 2 |
<div class="frmicon icon32"><br/></div> |
| 3 |
<h2><?php echo ( $form->is_template ? __('Templates', 'formidable') : __('Build', 'formidable')); ?> |
| 4 |
<a href="?page=formidable&frm_action=new-selection" class="add-new-h2"><?php _e('Add New', 'formidable'); ?></a> |
| 5 |
</h2> |
| 6 |
<?php |
| 7 |
if ( ! $form->is_template ) { |
| 8 |
FrmAppController::get_form_nav($id, true); |
| 9 |
} |
| 10 |
require(FrmAppHelper::plugin_path() .'/classes/views/shared/errors.php'); |
| 11 |
|
| 12 |
if(version_compare( $GLOBALS['wp_version'], '3.3.3', '<')){ ?> |
| 13 |
<div id="poststuff" class="metabox-holder has-right-sidebar"> |
| 14 |
<?php |
| 15 |
require(FrmAppHelper::plugin_path() .'/classes/views/frm-forms/add_field_links.php'); |
| 16 |
}else{ ?> |
| 17 |
<div id="poststuff"> |
| 18 |
<?php } ?> |
| 19 |
|
| 20 |
<div id="post-body" class="metabox-holder columns-2"> |
| 21 |
<div id="post-body-content"> |
| 22 |
<div class="frm_form_builder<?php echo (isset($form->options['custom_style']) && $form->options['custom_style']) ? ' with_frm_style' : ''; ?>"> |
| 23 |
|
| 24 |
<p style="margin-top:0;"> |
| 25 |
<input type="button" onclick="frmSubmit<?php echo (isset($form->options['ajax_load']) && $form->options['ajax_load']) ? 'Build' : 'NoAjax'; ?>(this)" value="<?php _e('Update', 'formidable') ?>" class="button-primary" /> |
| 26 |
<?php _e('or', 'formidable') ?> |
| 27 |
<a class="button-secondary cancel" href="?page=formidable<?php echo ($form->is_template) ? '-templates' : ''; ?>"><?php _e('Cancel', 'formidable') ?></a> |
| 28 |
<span class="frm-loading-img"></span> |
| 29 |
</p> |
| 30 |
|
| 31 |
<form method="post" id="frm_build_form"> |
| 32 |
<input type="hidden" name="frm_action" value="update" /> |
| 33 |
<input type="hidden" name="action" value="update" /> |
| 34 |
<input type="hidden" name="id" value="<?php echo $id; ?>" /> |
| 35 |
|
| 36 |
<?php require(FrmAppHelper::plugin_path() .'/classes/views/frm-forms/form.php'); ?> |
| 37 |
|
| 38 |
<p> |
| 39 |
<input type="button" onclick="frmSubmit<?php echo (isset($form->options['ajax_load']) && $form->options['ajax_load']) ? 'Build' : 'NoAjax'; ?>(this)" value="<?php _e('Update', 'formidable') ?>" class="button-primary" /> |
| 40 |
<?php _e('or', 'formidable') ?> |
| 41 |
<a class="button-secondary cancel" href="?page=formidable<?php echo $form->is_template ? '-templates' : ''; ?>"><?php _e('Cancel', 'formidable') ?></a> |
| 42 |
<span class="frm-loading-img"></span> |
| 43 |
</p> |
| 44 |
</form> |
| 45 |
</div> |
| 46 |
</div> |
| 47 |
<?php |
| 48 |
if(version_compare( $GLOBALS['wp_version'], '3.3.2', '>')) |
| 49 |
require(FrmAppHelper::plugin_path() .'/classes/views/frm-forms/add_field_links.php'); |
| 50 |
?> |
| 51 |
</div> |
| 52 |
</div> |
| 53 |
</div> |
| 54 |
|