add user status

This commit is contained in:
2016-04-08 21:48:53 +02:00
parent 859c898264
commit 1cbecb415b
6 changed files with 14 additions and 3 deletions

View File

@@ -5,6 +5,7 @@ use yii\widgets\ActiveForm;
use yii\grid\GridView;
use yii\data\ArrayDataProvider;
use common\components\RoleDefinition;
use common\models\User;
/* @var $this yii\web\View */
/* @var $model common\models\User */
@@ -25,6 +26,8 @@ asort($roleOptions);
<?= $form->field($model, 'username')->textInput() ?>
<?= $form->field($model, 'email')->textInput() ?>
<?= $form->field($model, 'status')
->dropDownList(User::statuses())->hint("Csak aktív felhasználó tud bejelentkezni") ?>
<?= $form->field($model, 'password_plain')->passwordInput() ?>
<?= $form->field($model, 'password_repeat')->passwordInput() ?>
<?= $form->field($model, 'role')->dropDownList($roleOptions) ?>