add user status
This commit is contained in:
@@ -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) ?>
|
||||
|
||||
@@ -31,7 +31,7 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
'username',
|
||||
'email:email',
|
||||
'created_at:datetime',
|
||||
|
||||
['attribute' => 'status' , 'value' => 'statusHuman'],
|
||||
[
|
||||
'attribute' => 'role',
|
||||
'value' => function ($model){
|
||||
|
||||
Reference in New Issue
Block a user