Commit bdbf2fbd7035f05fbac52f27002bdcbdda46b51f
1 parent
09d056d9
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 | ... | ... |