You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
784 B
32 lines
784 B
<?php |
|
|
|
/* @var $this yii\web\View */ |
|
/* @var $model \core\forms\user\UserForm */ |
|
/* @var $user \core\entities\user\User */ |
|
|
|
use yii\widgets\ActiveForm; |
|
use yii\helpers\Html; |
|
|
|
?> |
|
|
|
<div class="user-form"> |
|
|
|
<?php $form = ActiveForm::begin(); ?> |
|
|
|
<div class="box box-default"> |
|
<div class="box-body"> |
|
<?= $form->field($model, 'username')->textInput(['maxLength' => true]) ?> |
|
<?= $form->field($model, 'email')->textInput(['maxLength' => true]) ?> |
|
<?= $form->field($model, 'password')->passwordInput(['maxLength' => true]) ?> |
|
<?= $form->field($model, 'role')->dropDownList($model->rolesList()) ?> |
|
</div> |
|
</div> |
|
|
|
<div class="form-group"> |
|
<?= Html::submitButton(Yii::t('buttons', 'Save'), ['class' => 'btn btn-primary']) ?> |
|
</div> |
|
|
|
<?php ActiveForm::end(); ?> |
|
|
|
</div> |
|
|
|
|