<?php

use TourOperatorPro\Factory;
use TourOperatorPro\Language\Text;

$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');
?>
<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_attr_e('Customize Detail','touroperatorpro'); ?> </a></li>
           </ul>
            <div class="tab-content">
                <div role="tabpanel" class="tab-pane active" id="detail">
                    <div class="row">
                        <div class="col-md-12">
                            <?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>
                    <div class="row">
                        <div class="col-md-12">
                            <?php echo ($this->form->renderField('label_field')) ?>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <?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>
                    <div class="row">
                        <div class="col-md-12">
                            <?php echo ($this->form->renderField('type')) ?>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <?php echo ($this->form->renderField('description')) ?>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <?php echo ($this->form->renderField('default_value')) ?>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <?php echo ($this->form->renderField('backend')) ?>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <?php echo ($this->form->renderField('frontend')) ?>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <?php echo ($this->form->renderField('published')) ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <?php echo ($this->form->renderField('id')) ?>
    </form>
</div>
