<?php

use WpBookingHotel\Factory;
use WpBookingHotel\Language\Text;
?>
<div class="view-customize-form">
    <form action="" name="admin_woopanel-form" method="post" enctype="multipart/form-data">
        <div>
            <ul class="activity-tab nav nav-tabs" role="tablist">
                <li role="presentation" class="active"><a href="#detail" aria-controls="home" role="tab"
                                                          data-toggle="tab"><?php esc_html_e('Customize Detail','wpbookinghotel'); ?> </a></li>
           </ul>
            <div class="tab-content">
                <div role="tabpanel" class="tab-pane active" id="detail">
                    <div class="row">
                        <div class="col-md-6">
                            <?php
                                $field=$this->form->getField('table_view');
                            if( isset($this->item->id) && $this->item->id)
                                    $field->__set('disabled',1);
                            ?>
                            <?php echo ($field->renderField()) ?>
                        </div>
                        <div class="col-md-6">
                            <?php echo ($this->form->renderField('label_field')) ?>
                        </div>
                    </div>
                    <div class="row">

                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <?php
                            $field=$this->form->getField('field_name');
                            if( isset($this->item->id) && $this->item->id)
                                $field->__set('disabled',1);
                            ?>
                            <?php echo ($field->renderField()) ?>
                        </div>
                        <div class="col-md-6">
                            <?php echo ($this->form->renderField('type')) ?>
                        </div>
                    </div>
                    <div class="row">

                        <div class="col-md-6">
                            <?php echo ($this->form->renderField('default_value')) ?>
                        </div>

                        <div class="col-md-6">
                            <?php echo ($this->form->renderField('published')) ?>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <?php echo ($this->form->renderField('backend')) ?>
                        </div>
                        <div class="col-md-6">
                            <?php echo ($this->form->renderField('frontend')) ?>
                        </div>

                    </div>
                    <div class="row">

                        <div class="col-md-12">
                            <?php echo ($this->form->renderField('description')) ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <?php echo ($this->form->renderField('id')) ?>
    </form>
</div>
<?php
$doc = Factory::getDocument();
$doc->addLessStyleSheet('admin_woopanel/app/assets/less/view_form_customize.less');
$doc->addStyleSheet('admin_woopanel/app/assets/nb-font-icon/nb-font-icon.css');
?>