title = 'Персоны (Эксперты)'; $this->params['breadcrumbs'][] = $this->title; ?>
= Html::a('Создать карточку персоны', ['create'], ['class' => 'btn btn-success']) ?>
= GridView::widget([ 'dataProvider' => $dataProvider, 'columns' => [ ['class' => 'yii\grid\SerialColumn'], [ 'attribute' => 'Фото', 'value' => function ($model) { return ''; }, 'format' => 'raw', ], 'name:text', [ 'attribute' => 'alias', 'value' => function ($model) { return Url::base('https').'/person/'.$model->alias; }, 'format' => 'url', ], 'jobtitle:ntext', 'birthdate:date', 'phone:ntext', 'email:email', 'show:ntext', //'id', [ 'class' => ActionColumn::className(), 'visibleButtons' =>[ 'delete' => Yii::$app->user->can('admin'), ], 'buttonOptions' => ['class' => 'btn btn-default'], 'urlCreator' => function ($action, Person $model, $key, $index, $column) { return Url::toRoute([$action, 'id' => $model->id]); } ], ], ]); ?>