
<?php


?>
<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 -->

            <?php if($sidebar_mode === "add") {?>
                <h2 class="hndle"><span><?php esc_attr_e('Add Site', 'wp_admin_style'); ?></span></h2>
            <?php
            }
            elseif ($sidebar_mode === "edit"){?>
                <h2 class="hndle"><span><?php esc_attr_e('Edit Site', 'wp_admin_style'); ?></span></h2>
            <?php
            }
            ?>

            <div class="inside">
                <a href="admin.php?page=ftm-geo-target-sites" class="btn btn-success">Back to sites</a>
                <br>
                <br>
                <?php
                if($sidebar_mode === "add") {?>
                    <input class="btn btn-primary" type="submit" form="site_add_form" name="adds" value="<?php esc_attr_e( 'Add Site' ); ?>" />
                    <?php
                }
                elseif ($sidebar_mode === "edit"){?>
                    <input class="btn btn-primary" type="submit" form="side_edit_form" name="adds" value="<?php esc_attr_e( 'Update Site' ); ?>" /><br/><br/><br/>
                    <button class="btn btn-danger"  data-bs-toggle="modal" data-bs-target="#delete_modal"  onclick="fill_confirm_popup_key_value('delete_site_form','site_delete_id','<?php echo($siteID);?>');" name="delete_site" type="submit">Delete Site</button>
                    <?php
                }
                ?>
            </div>
            <!-- .inside -->

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

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

</div>
