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.

29 lines
826 B

7 years ago
<?php
3 years ago
use core\entities\user\User;
use core\forms\user\UserForm;
7 years ago
use yii\widgets\ActiveForm;
use yii\helpers\Html;
3 years ago
/* @var $this yii\web\View */
/* @var $model UserForm */
/* @var $user User */
7 years ago
?>
<div class="user-form">
<?php $form = ActiveForm::begin(); ?>
3 years ago
<div class="card">
<div class="card-body">
7 years ago
<?= $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>
3 years ago
<div class="card-footer text-right">
<?= Html::submitButton(Yii::t('buttons', 'Save'), ['class' => 'btn btn-success']) ?>
</div>
7 years ago
</div>
<?php ActiveForm::end(); ?>
</div>