<commit_before><?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use mihaildev\ckeditor\CKEditor;

/* @var $this yii\web\View */
/* @var $model backend\modules\category\models\Category */
/* @var $form yii\widgets\ActiveForm */


?>
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'tab')->textInput(['maxlength' => true])->hiddenInput()->label(false); ?>
<?php
$tabMenu1 = '';
$tabMenu2 = '';
$tabMenu3 = '';
$tabContent1 = '';
$tabContent2 = '';
$tabContent3 = '';
if($model->tab == '#panel1' or $model->tab == ''){
    $tabMenu1 = 'class="active"';
    $tabContent1 = 'in active';
}
if($model->tab == '#panel2'){
    $tabMenu2 = 'class="active"';
    $tabContent2 = 'in active';
}
if($model->tab == '#panel3'){
    $tabMenu3 = 'class="active"';
    $tabContent3 = 'in active';
}
?>
<div class="category-form">
    <div id="validMsg" style="margin: 10px"></div>
    <ul id="myTab" class="nav nav-tabs">
        <li <?= $tabMenu1; ?>><a href="#panel1">Общее</a></li>
        <li <?= $tabMenu2; ?>><a href="#panel2">Вид</a></li>
        <li <?= $tabMenu3; ?>><a href="#panel3">SEO</a></li>

    </ul>

    <div class="tab-content">
        <div id="panel1" class="tab-pane fade <?= $tabContent1 ?>">
            <h3>Общее</h3>
            <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
            <?= $form->field($model, 'parent_id')->dropDownList($parent) ?>
            <div id="imgLoad">
                <div id="imgPreview">
                    <?php
                    if(!empty($model->images)){
                        echo '<div class="imgadd">';
                        echo Html::img($model->images,['width'=>'100px']);
                        /*echo Html::hiddenInput('pages-images',$model->images);*/
                        //echo $form->field($model, 'images')->hiddenInput()->label("<a data-toggle='modal' data-target='#myModal' href='#'>Обзор</a><a class = 'del_img' href = '#'>Удалить</a>");
                        echo '</div>';

                    }
                    else{
                        echo "<div class='imgEmpty'>Изображение</div>";
                    }
                    ?>
                </div>
                <a data-toggle='modal' data-target='#myModal' href='#'>Обзор</a> |
                <a class = 'del_img_pages' href = '#'>Удалить</a>
            </div>
            <?= $form->field($model, 'images')->textInput(['maxlength' => true])->hiddenInput()->label(false); ?>
            <?= $form->field($model, 'fix_menu')->dropDownList(['0' => 'Не прикреплять', '1' => 'Меню 1-го уровня', '2' => 'Меню 2-го уровня']) ?>
            <?= $form->field($model, 'count_product')->textInput() ?>
            <?= $form->field($model, 'hint')->textInput(['maxlength' => true]) ?>
            <?/*= $form->field($model, 'description')->textarea(['rows' => 6]) */?>
            <?= $form->field($model, 'description')->widget(CKEditor::className(), [
                'editorOptions' => \mihaildev\elfinder\ElFinder::ckeditorOptions('elfinder', [
                    'preset' => 'standard',
                    'inline' => false,
                ]),
            ]) ?>
        </div>
        <div id="panel2" class="tab-pane fade <?= $tabContent2 ?>"><commit_msg>формы2<commit_after><?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use mihaildev\ckeditor\CKEditor;

/* @var $this yii\web\View */
/* @var $model backend\modules\category\models\Category */
/* @var $form yii\widgets\ActiveForm */


?>
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'tab')->textInput(['maxlength' => true])->hiddenInput()->label(false); ?>
<?php
$tabMenu1 = '';
$tabMenu2 = '';
$tabMenu3 = '';
$tabContent1 = '';
$tabContent2 = '';
$tabContent3 = '';
if($model->tab == '#panel1' or $model->tab == ''){
    $tabMenu1 = 'class="active"';
    $tabContent1 = 'in active';
}
if($model->tab == '#panel2'){
    $tabMenu2 = 'class="active"';
    $tabContent2 = 'in active';
}
if($model->tab == '#panel3'){
    $tabMenu3 = 'class="active"';
    $tabContent3 = 'in active';
}
?>
<div class="category-form">
    <div id="validMsg" style="margin: 10px"></div>
    <ul id="myTab" class="nav nav-tabs">
        <li <?= $tabMenu1; ?>><a href="#panel1">Общее</a></li>
        <li <?= $tabMenu2; ?>><a href="#panel2">Вид</a></li>
        <li <?= $tabMenu3; ?>><a href="#panel3">SEO</a></li>

    </ul>

    <div class="tab-content">
        <div id="panel1" class="tab-pane fade <?= $tabContent1 ?>">
            <h3>Общее</h3>
            <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
            <?= $form->field($model, 'parent_id')->dropDownList($parent) ?>
            <div id="imgLoad">
                <div id="imgPreview">
                    <?php
                    if(!empty($model->images)){
                        echo '<div class="imgadd">';
                        echo Html::img($model->images,['width'=>'100px']);
                        /*echo Html::hiddenInput('pages-images',$model->images);*/
                        //echo $form->field($model, 'images')->hiddenInput()->label("<a data-toggle='modal' data-target='#myModal' href='#'>Обзор</a><a class = 'del_img' href = '#'>Удалить</a>");
                        echo '</div>';

                    }
                    else{
                        echo "<div class='imgEmpty'>Изображение</div>";
                    }
                    ?>
                </div>
                <a data-toggle='modal' data-target='#myModal' href='#'>Обзор</a> |
                <a class = 'del_img_pages' href = '#'>Удалить</a>
            </div>
            <?= $form->field($model, 'images')->textInput(['maxlength' => true])->hiddenInput()->label(false); ?>
            <div class="cleared"></div>
            <br>
            <?= $form->field($model, 'fix_menu')->dropDownList(['0' => 'Не прикреплять', '1' => 'Меню 1-го уровня', '2' => 'Меню 2-го уровня']) ?>
            <?= $form->field($model, 'count_product')->textInput() ?>
            <?= $form->field($model, 'hint')->textInput(['maxlength' => true]) ?>
            <?/*= $form->field($model, 'description')->textarea(['rows' => 6]) */?>
            <?= $form->field($model, 'description')->widget(CKEditor::className(), [
                'editorOptions' => \mihaildev\elfinder\ElFinder::ckeditorOptions('elfinder', [
                    'preset' => 'standard',
                    'inline' => false,
                ]),
            ]) ?>
        </div>
        <div id="panel2" class="tab-pane fade <?= $tabContent2 ?>">
{'fraction_non_alphanumeric': 0.23218109513612725, 'fraction_numerical': 0.011777301927194861, 'mean_word_length': 2.294206549118388, 'pattern_counts': {'":': 0, '<': 120, '<?xml version=': 0, '>': 208, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7242674', 'n_tokens_mistral': 2160, 'n_tokens_neox': 2106, 'n_words': 333}