40 lines
918 B
PHP
40 lines
918 B
PHP
|
<?php
|
||
|
|
||
|
use yii\helpers\Html;
|
||
|
use yii\grid\GridView;
|
||
|
|
||
|
/* @var $this yii\web\View */
|
||
|
/* @var $searchModel backend\modules\card\models\UserCardSearch */
|
||
|
/* @var $dataProvider yii\data\ActiveDataProvider */
|
||
|
|
||
|
$this->title = 'Профили';
|
||
|
$this->params['breadcrumbs'][] = $this->title;
|
||
|
?>
|
||
|
<div class="user-card-index">
|
||
|
|
||
|
<p>
|
||
|
<?= Html::a('Добавить', ['create'], ['class' => 'btn btn-success']) ?>
|
||
|
</p>
|
||
|
|
||
|
<?= GridView::widget([
|
||
|
'dataProvider' => $dataProvider,
|
||
|
'filterModel' => $searchModel,
|
||
|
'columns' => [
|
||
|
['class' => 'yii\grid\SerialColumn'],
|
||
|
|
||
|
'id',
|
||
|
'fio',
|
||
|
'passport',
|
||
|
'photo',
|
||
|
'email:email',
|
||
|
//'gender',
|
||
|
//'dob',
|
||
|
//'status',
|
||
|
//'created_at',
|
||
|
//'updated_at',
|
||
|
|
||
|
['class' => 'yii\grid\ActionColumn'],
|
||
|
],
|
||
|
]); ?>
|
||
|
</div>
|