echo $addForm->field($category, 'show', ['inputOptions' => ['class' => 'form-control']])->checkbox(['class' => 'i-checks', 'checked ' => $category->show ? '' : false]); ?> <!-- PARENT CATEGORY --> <b><?php echo \Yii::t('shop', 'Parent category'); ?> </b> <?php echo '<ul class="list-group ul-treefree ul-dropfree">'; ?> <?php echo '<li class="list-group-item"><input type="radio" checked name="Category[parent_id]" value="" id="null"><label for="null">' . \Yii::t("shop", "Without parent") . '</label>'; ?> <?php echo CategoryTranslation::treeRecoursion($categoriesTree, $category->parent_id, 'Category[parent_id]', $category_translation->category_id); ?> <?php echo '</ul>'; ?> <!-- DESCRIPTION --> <?php echo $addForm->field($category_translation, 'description', ['inputOptions' => ['class' => 'form-control']])->widget(Summernote::className())->label(\Yii::t('shop', 'Description')); ?> <!-- SORT ORDER --> <?php echo $addForm->field($category, 'position', ['inputOptions' => ['class' => 'form-control']])->textInput(['type' => 'number', 'max' => $maxPosition, 'min' => $minPosition]); ?>