|
@@ -37,13 +37,16 @@ $this->params['breadcrumbs'][] = $this->title;
|
|
|
'filterModel' => $searchModel,
|
|
'filterModel' => $searchModel,
|
|
|
'layout' => "{items}\n{pager}",
|
|
'layout' => "{items}\n{pager}",
|
|
|
'columns' => [
|
|
'columns' => [
|
|
|
- [
|
|
|
|
|
|
|
+ /*[
|
|
|
'attribute' => 'id',
|
|
'attribute' => 'id',
|
|
|
'headerOptions' => ['style' => 'width:90px;'], # 90px is sufficient for 5-digit user ids
|
|
'headerOptions' => ['style' => 'width:90px;'], # 90px is sufficient for 5-digit user ids
|
|
|
- ],
|
|
|
|
|
|
|
+ ],*/
|
|
|
'uuid',
|
|
'uuid',
|
|
|
|
|
+ 'fio',
|
|
|
|
|
+ 'cname',
|
|
|
|
|
+ 'phone',
|
|
|
'email:email',
|
|
'email:email',
|
|
|
- [
|
|
|
|
|
|
|
+ /*[
|
|
|
'attribute' => 'registration_ip',
|
|
'attribute' => 'registration_ip',
|
|
|
'value' => function ($model) {
|
|
'value' => function ($model) {
|
|
|
return $model->registration_ip == null
|
|
return $model->registration_ip == null
|
|
@@ -51,8 +54,8 @@ $this->params['breadcrumbs'][] = $this->title;
|
|
|
: $model->registration_ip;
|
|
: $model->registration_ip;
|
|
|
},
|
|
},
|
|
|
'format' => 'html',
|
|
'format' => 'html',
|
|
|
- ],
|
|
|
|
|
- [
|
|
|
|
|
|
|
+ ],*/
|
|
|
|
|
+ /*[
|
|
|
'attribute' => 'created_at',
|
|
'attribute' => 'created_at',
|
|
|
'value' => function ($model) {
|
|
'value' => function ($model) {
|
|
|
if (extension_loaded('intl')) {
|
|
if (extension_loaded('intl')) {
|
|
@@ -61,9 +64,9 @@ $this->params['breadcrumbs'][] = $this->title;
|
|
|
return date('Y-m-d G:i:s', $model->created_at);
|
|
return date('Y-m-d G:i:s', $model->created_at);
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- ],
|
|
|
|
|
|
|
+ ],*/
|
|
|
|
|
|
|
|
- [
|
|
|
|
|
|
|
+ /*[
|
|
|
'attribute' => 'last_login_at',
|
|
'attribute' => 'last_login_at',
|
|
|
'value' => function ($model) {
|
|
'value' => function ($model) {
|
|
|
if (!$model->last_login_at || $model->last_login_at == 0) {
|
|
if (!$model->last_login_at || $model->last_login_at == 0) {
|
|
@@ -74,8 +77,8 @@ $this->params['breadcrumbs'][] = $this->title;
|
|
|
return date('Y-m-d G:i:s', $model->last_login_at);
|
|
return date('Y-m-d G:i:s', $model->last_login_at);
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- ],
|
|
|
|
|
- [
|
|
|
|
|
|
|
+ ],*/
|
|
|
|
|
+ /*[
|
|
|
'header' => Yii::t('user', 'Confirmation'),
|
|
'header' => Yii::t('user', 'Confirmation'),
|
|
|
'value' => function ($model) {
|
|
'value' => function ($model) {
|
|
|
if ($model->isConfirmed) {
|
|
if ($model->isConfirmed) {
|
|
@@ -92,7 +95,7 @@ $this->params['breadcrumbs'][] = $this->title;
|
|
|
},
|
|
},
|
|
|
'format' => 'raw',
|
|
'format' => 'raw',
|
|
|
'visible' => Yii::$app->getModule('user')->enableConfirmation,
|
|
'visible' => Yii::$app->getModule('user')->enableConfirmation,
|
|
|
- ],
|
|
|
|
|
|
|
+ ],*/
|
|
|
[
|
|
[
|
|
|
'header' => Yii::t('user', 'Block status'),
|
|
'header' => Yii::t('user', 'Block status'),
|
|
|
'value' => function ($model) {
|
|
'value' => function ($model) {
|