Commit 670c5a28ab64120fa9bd3f50c0dfb7d20e09376c

Authored by Alexey Boroda
1 parent fc822447

-Two columns sizes

Showing 1 changed file with 17 additions and 0 deletions   Show diff stats
views/brand-size/_form.php
1 1 <?php
2 2  
3 3 use artweb\artbox\ecommerce\models\BrandSize;
  4 + use kartik\select2\Select2;
4 5 use yii\helpers\Html;
5 6 use yii\helpers\Url;
6 7 use yii\web\View;
... ... @@ -59,6 +60,22 @@
59 60 ],
60 61 ]
61 62 ); ?>
  63 +
  64 + <?= $form->field($model, 'categories')
  65 + ->widget(
  66 + Select2::className(),
  67 + [
  68 + 'data' => [],
  69 + 'language' => 'ru',
  70 + 'options' => [
  71 + 'placeholder' => Yii::t('product', 'Select categories'),
  72 + 'multiple' => true,
  73 + ],
  74 + 'pluginOptions' => [
  75 + 'allowClear' => true,
  76 + ],
  77 + ]
  78 + )->label(\Yii::t('app', 'Категории')) ?>
62 79  
63 80 <div class="form-group">
64 81 <?= Html::submitButton(
... ...