<?php

$content  = ftm_geo_target_currentContent();

$sidebar_mode = "add";

if($sidebar_action){
    $sidebar_mode = $sidebar_action;
}

?>
<div id="postbox-container-1" class="postbox-container">

    <div class="meta-box-sortables">

        <div class="postbox">

            <div class="handlediv" title="Click to toggle"><br></div>
            <!-- Toggle -->

            <div class="inside">
                <a href="admin.php?page=ftm-geo-target-content" class="btn btn-success">Back to contents</a>
            </div>
            <?php
            if($sidebar_mode === "add") {?>
                <h2 class="hndle"><span><?php esc_attr_e(
                            'Add Content', 'wp_admin_style'
                        ); ?></span></h2>

                <div class="inside">
                    <input class="btn btn-primary" type="submit" form="add_content_form" <?php /* onclick="return special_validation('add_content_form', '');" */?> name="add_internal" value="<?php esc_attr_e('Add content'); ?>"/>
                </div>
                <!-- .inside -->
                <?php
            }
            elseif ($sidebar_mode === "edit"){?>
                <h2 class="hndle"><span><?php esc_attr_e(
                            'Edit Content', 'wp_admin_style'
                        ); ?></span></h2>

                <div class="inside">
                    <input class="btn btn-primary" type="submit" form="edit_content_form" <?php /* onclick="return special_validation('edit_content_form','groupid');" */?> name="edit_internal" value="<?php esc_attr_e('Update content'); ?>"/>
                </div>
                <!-- .inside -->
                <?php
            }
            ?>

        </div>
        <!-- .postbox -->


    </div>
    <!-- .meta-box-sortables -->

</div>
