Commit 5c492607ea6b9789b478091f57603602beef20ff
1 parent
4698313b
Importers CRUD
Showing
2 changed files
with
6 additions
and
1 deletions
Show diff stats
backend/controllers/UserController.php
backend/views/accounts/_form.php
| ... | ... | @@ -49,7 +49,10 @@ use yii\helpers\ArrayHelper; |
| 49 | 49 | |
| 50 | 50 | <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?> |
| 51 | 51 | |
| 52 | - <?= $form->field($model, 'city')->dropDownList(ArrayHelper::map($cities, 'id', 'name'), ['prompt' => 'Выберие город']) ?> | |
| 52 | + <?= $form->field($model, 'city')->dropDownList(ArrayHelper::map([['id'=>1,'name'=>'Администратор'], | |
| 53 | + ['id'=>2,'name'=>'Менеджер'], | |
| 54 | + ['id'=>3,'name'=>'Топ-менеджер'], | |
| 55 | + ], 'id', 'name')) ?> | |
| 53 | 56 | |
| 54 | 57 | <?= $form->field($model, 'address')->textarea(['rows' => 6]) ?> |
| 55 | 58 | ... | ... |