]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
ERP-282 Нужно сделать интерфейс настройки магазина
authormarina <m.zozirova@gmail.com>
Tue, 28 Jan 2025 15:03:34 +0000 (18:03 +0300)
committermarina <m.zozirova@gmail.com>
Tue, 28 Jan 2025 15:03:34 +0000 (18:03 +0300)
erp24/views/city-store-params/index.php

index 463d8b90673619d46eb5b847ea40136de006939a..37e19e22f1e3e188b6da158cbdfa8e67c16ab1de 100644 (file)
@@ -66,7 +66,7 @@ $this->registerJsFile('/js/city-store-params/city-store-params.js', ['position'
                 ]);
                 ?>
                 <?= Html::a('Редактировать', [
-                    Url::to('/store-city-list')], ['class' => 'd-block mt-2 text-decoration-none',    'target' => '_blank']);
+                    Url::to('/store-city-list')], ['class' => 'd-block mt-2 text-decoration-none', 'target' => '_blank']);
                 ?>
             </div>
         </div>
@@ -214,19 +214,17 @@ $this->registerJsFile('/js/city-store-params/city-store-params.js', ['position'
                     </div>
                     <div class="col-md-3">
                         <?= Html::label('Регион'); ?>
-                        <?= Select2::widget([
-                            'name' => 'CityStoreParams[address_region]',
-                            'value' => null,
-                            'data' => ArrayHelper::map(StoreCityList::findAll(['type' => StoreCityList::TYPE_REGION]), 'id', 'name'),
-                            'options' => [
-                                'placeholder' => 'Регион',
-                                'class' => 'form-select',
+                        <?= Html::dropDownList(
+                            'CityStoreParams[address_region]',
+                            null,
+                            ArrayHelper::map(StoreCityList::findAll(['type' => StoreCityList::TYPE_REGION]), 'id', 'name'),
+                            [
                                 'id' => 'region',
-                            ],
-                            'pluginOptions' => [
-                                'allowClear' => true,
-                            ],
-                        ]); ?>
+                                'class' => 'form-select',
+                                'prompt' => 'Выберите регион',
+                                'data-placeholder' => 'Выберите регион',
+                            ]
+                        ); ?>
                     </div>
 
                     <div class="col-md-3">