field($model, 'name')->textInput() ?> field($model, 'alias')->textInput(['maxlength' => true]) ?> field($model, 'parent_id')->dropDownList($categories, [ 'prompt' => Yii::t('rubrication', 'Root category'), 'options' => [ $model->category_id => ['disabled' => true] ] ])->label(Yii::t('product', 'Parent category')) ?> field($model, 'group_to_category')->dropDownList( \yii\helpers\ArrayHelper::map(\common\modules\rubrication\models\TaxGroup::find()->all(), 'tax_group_id', 'name'), [ 'multiple' => true ])->label(Yii::t('product', 'Linked options')) ?> */?> field($model, 'group_to_category')->widget(Select2::className(), [ 'data' => \yii\helpers\ArrayHelper::map(\common\modules\rubrication\models\TaxGroup::find()->all(), 'tax_group_id', 'name'), 'language' => 'ru', 'options' => [ 'placeholder' => 'Linked options', 'multiple' => true, ], 'pluginOptions' => [ 'allowClear' => true ], ] ) ?> $model, 'field'=>'image', 'size' => [ [ 'width'=>340, 'height'=>260, ] ], 'multi'=>false, 'gallery' => $model->image, 'name' => 'Загрузить изображение' ]); ?> field($model, 'meta_title')->textInput(['maxlength' => true]) ?> field($model, 'meta_desc')->textarea(['rows' => 6]) ?> field($model, 'meta_robots')->textInput(['maxlength' => true]) ?> field($model, 'seo_text')->textarea(['rows' => 6]) ?> field($model, 'remote_category')->widget(Select2::className(), [ 'data' => \yii\helpers\ArrayHelper::map(\common\modules\product\models\RemoteCategories::find()->all(), 'ID', 'Name'), 'language' => 'ru', 'options' => [ 'placeholder' => 'Select a remote category', 'multiple' => true, ], 'pluginOptions' => [ 'allowClear' => true ], ] ) ?> depth == 2) :?> field($model, 'populary')->checkbox() ?>
isNewRecord ? Yii::t('product', 'Create') : Yii::t('product', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> isNewRecord) :?> 'create_and_new', 'class' => 'btn btn-primary']) ?>