[ 'enctype' => 'multipart/form-data' ] ]); ?> field($model, 'categories') ->dropDownList( ArtboxTreeHelper::treeMap(ProductHelper::getCategories(), 'id', 'lang.title'), [ 'multiple' => true, ] ) ->label('Use in the following categories') ?> field($model, 'position') ->widget( Select2::className(), [ 'data' => [ 0 => 'Не отображать', 1 => 'Во вкладках', 2 => 'В списке', ], 'options' => [ 'placeholder' => 'Положение в карточке товара' ], 'pluginOptions' => [ 'allowClear' => true, ], ] ) ?> field($model, 'is_filter') ->checkbox() ?> field($model, 'display') ->checkbox() ?> field($model, 'is_menu') ->checkbox() ?> field($model, 'use_in_name') ->checkbox() ?> field($model, 'sort') ->textInput() ?> field($model, 'meta_robots') ->textInput() ?> $modelLangs, 'formView' => '@artweb/artbox/ecommerce/views/tax-group/_form_language', 'form' => $form, ] ); ?>
isNewRecord ? Yii::t('rubrication', 'Create') : Yii::t('rubrication', 'Update'), [ 'class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary' ] ) ?>