index.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. use yii\helpers\Html;
  3. use yii\grid\GridView;
  4. /* @var $this yii\web\View */
  5. /* @var $searchModel app\models\UsersSearch */
  6. /* @var $dataProvider yii\data\ActiveDataProvider */
  7. $this->title = 'Users';
  8. $this->params['breadcrumbs'][] = $this->title;
  9. ?>
  10. <div class="users-index">
  11. <h1><?= Html::encode($this->title) ?></h1>
  12. <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
  13. <?= GridView::widget([
  14. 'dataProvider' => $dataProvider,
  15. 'filterModel' => $searchModel,
  16. 'columns' => [
  17. ['class' => 'yii\grid\SerialColumn'],
  18. 'id',
  19. 'username',
  20. //'role',
  21. 'email:email',
  22. 'fio',
  23. 'at_org',
  24. // 'org_type',
  25. 'member_phone',
  26. // 'fax',
  27. // 'status',
  28. // 'password_hash',
  29. // 'auth_key',
  30. // 'confirmed_at',
  31. // 'unconfirmed_email:email',
  32. // 'blocked_at',
  33. // 'registration_ip',
  34. // 'created_at',
  35. // 'updated_at',
  36. // 'flags',
  37. ['class' => 'yii\grid\ActionColumn'],
  38. ],
  39. ]); ?>
  40. </div>