diff --git a/views/brand-size/_form.php b/views/brand-size/_form.php index bfd4549..9eb062c 100755 --- a/views/brand-size/_form.php +++ b/views/brand-size/_form.php @@ -1,6 +1,7 @@ + + = $form->field($model, 'categories') + ->widget( + Select2::className(), + [ + 'data' => [], + 'language' => 'ru', + 'options' => [ + 'placeholder' => Yii::t('product', 'Select categories'), + 'multiple' => true, + ], + 'pluginOptions' => [ + 'allowClear' => true, + ], + ] + )->label(\Yii::t('app', 'Категории')) ?>