* * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. */ use yii\grid\GridView; use yii\helpers\Html; use yii\web\View; use yii\widgets\Pjax; /** * @var $this yii\web\View * @var $dataProvider yii\data\ActiveDataProvider * @var $searchModel Da\User\Search\UserSearch */ $this->title = Yii::t('usuario', 'Manage users'); $this->params['breadcrumbs'][] = $this->title; ?> beginContent('@Da/User/resources/views/shared/admin_layout.php') ?> = GridView::widget( [ 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'layout' => "{items}\n{pager}", 'columns' => [ 'username', 'email:email', [ 'attribute' => 'registration_ip', 'value' => function ($model) { return $model->registration_ip == null ? ''.Yii::t('usuario', '(not set)').'' : $model->registration_ip; }, 'format' => 'html', ], [ 'attribute' => 'created_at', 'value' => function ($model) { if (extension_loaded('intl')) { return Yii::t('usuario', '{0, date, MMMM dd, YYYY HH:mm}', [$model->created_at]); } else { return date('Y-m-d G:i:s', $model->created_at); } }, ], [ 'header' => Yii::t('usuario', 'Confirmation'), 'value' => function ($model) { if ($model->isConfirmed) { return '