<?php
/**
 * Displays WPAdverts Custom Fields - Create Data Source Page
 * 
 * This file is a template for wp-admin / Classifieds / Options / Custom Fields / Data Sources / Add New panel. 
 * 
 * It is being loaded by _wpadverts_custom_fields_page_ds_add function.
 * 
 * @see _wpadverts_custom_fields_page_ds_add()
 * @since 1.0.0
 */
?>
<div class="wrap">
    <h2 class="">
        <?php echo sprintf( __("Edit '%s' Data Source", "wpadverts-custom-fields"), $o["title"] ) ?>
    </h2>

    <h2 class="nav-tab-wrapper">
        <a href="<?php esc_attr_e( remove_query_arg( array( 'cfpanel', 'edit' ) ) ) ?>" class="nav-tab"><?php _e("Form Schemes", "wpadverts-custom-fields") ?></a>
        <a href="<?php esc_attr_e( add_query_arg( array('cfpanel' => 'data-sources', 'edit' => false ) ) ) ?>" class="nav-tab nav-tab-active"><?php _e("Data Sources", "wpadverts-custom-fields") ?></a>
    </h2>
    
    <?php adverts_admin_flash() ?>
    
    <form action="" method="post" class="adverts-form">
        <table class="form-table">
            <tbody>
            <?php echo adverts_form_layout_config($form) ?>
            </tbody>
        </table>

        <p class="submit">
            <input type="submit" value="<?php esc_attr_e($button_text) ?>" class="button-primary" name="<?php _e("Submit") ?>" />
        </p>

    </form>
    

</div>
