4698313b
Administrator
Importers CRUD
|
1
2
3
4
|
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
|
a5a611c9
Administrator
Importers CRUD
|
5
|
use yii\helpers\ArrayHelper;
|
4698313b
Administrator
Importers CRUD
|
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/* @var $this yii\web\View */
/* @var $model backend\models\User */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="user-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'login')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'password')->passwordInput(['maxlength' => true]) ?>
<?= $form->field($model, 'email')->textInput(['maxlength' => true]) ?>
|
a5a611c9
Administrator
Importers CRUD
|
22
23
24
25
26
|
<?= $form->field($model, 'is_super')->dropDownList(ArrayHelper::map([['id'=>1,'name'=>'Администратор'],
['id'=>2,'name'=>'Менеджер'],
['id'=>3,'name'=>'Топ-менеджер'],
], 'id', 'name')) ?>
|
4698313b
Administrator
Importers CRUD
|
27
28
29
|
<?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
|
4698313b
Administrator
Importers CRUD
|
30
|
|
9c00bbba
Administrator
Importers CRUD
|
31
32
33
34
35
|
<?= $form->field($model, 'office_id')->dropDownList(ArrayHelper::map([['id'=>0,'name'=>'Выбрать...'],
['id'=>2,'name'=>'Киев » Италавто']
], 'id', 'name')) ?>
|
5051b0e8
Administrator
Importers CRUD
|
36
|
<?= \backend\components\ImageSizer::widget(['form'=>$form, 'model'=> $model, 'field'=>'photo','width'=>200,'height'=>200]); ?>
|
4698313b
Administrator
Importers CRUD
|
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
<?= $form->field($model, 'contacts')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'acl_accounts_access')->textInput() ?>
<?= $form->field($model, 'active')->textInput() ?>
<div class="form-group">
<?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
|