
<?php
/**

 * @package     pkg_dearflip
 * @subpackage  com_dearflip
 * @since       1.0.0
 * @copyright   Copyright © 2007 Free Software Foundation, Inc. All rights reserved.
 * @license   GNU General Public License version 3 or later; see https://www.gnu.org/licenses/gpl-3.0.en.html

 */

// No direct access
defined('_JEXEC') or die('Restricted access');

?>

<style>
    #css-js-demo-id1 {
        color: red;
    }
    .hidden_item{
        display: none;
    }


    .dfc-hide-label {
        display: none;
    }
    .controls .dfc-shortcode-input {
        background-color:#f3f3f3;



    }
    textarea[readonly].copy_cursor{
        cursor: copy;
    }





</style>
<form action="<?php echo JRoute::_('index.php?option=com_dearflip&layout=edit&id=' . (int) $this->item->id); ?>"

      method="post" name="adminForm" id="adminForm">
    <div class="form-horizontal">
        <div style="margin: auto; width:70%; padding: 20px;">
        
           
        <fieldset class="adminform">
            <div class="tab-container" style="margin: auto; width: fit-content;  border: 3px solid #3071a9; padding: 20px; min-height: 450px">

             

                <?php echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' => 'dfx_setting_layout')); ?>
               

                <?php echo JHtml::_('bootstrap.addTab', 'myTab', 'dfx_setting_layout', JText::_('COM_DEARFLIP_MANAGER_DEARFLIP_SETTING_EDIT_PARAMETERS_TITLE', true));
                foreach($this->form->getFieldset('dfx_setting_layout') as $field) {
                    echo $field->renderField();
                }
                ?>
                <?php echo JHtml::_('bootstrap.endTab'); ?>



                <?php echo JHtml::_('bootstrap.addTab', 'myTab', 'dfx_setting_translate', JText::_('COM_DEARFLIP_MANAGER_DEARFLIP_SETTING_EDIT_PARAMETERS_TRANSLATE', true));
                foreach($this->form->getFieldset('dfx_setting_translate') as $field) {
                    echo $field->renderField();
                }
                ?>
                <?php echo JHtml::_('bootstrap.endTab'); ?>

              
            


                <?php echo JHtml::_('bootstrap.endTabSet'); ?>
            </div>
        </fieldset>
        
        
        
    </div>
    <input type="hidden" name="task" value="dearflipsetting.edit" />
    <?php echo JHtml::_('form.token');


    ?>

</form>

<!--<script>

  jQuery(document).ready(function () {

    var book_id="<?php /*echo $this->item->id; */?>";
    var $shortcode_class_temp=jQuery(".label-shortcode").parent().siblings(".controls").find("textarea")
    $shortcode_class_temp.addClass('dfc-shortcode-input')
    $shortcode_class_temp.addClass('copy_cursor')
    jQuery(".label-shortcode").parent().parent().addClass('dfc_shortcode_group')

    $shortcode_class_temp.val("{dearflip id=" + book_id
      + "}");
    $shortcode_class_temp.attr('readonly', true);






  });
</script>-->