title = Yii::$app->name . ' | Проверка заявлений';
use kartik\grid\GridView;
use yii\grid\ActionColumn;
use yii\grid\SerialColumn;
use yii\helpers\Html;
use yii\helpers\Url;
$this->registerCssFile('css/manager_style.css', ['depends' => ['frontend\assets\FrontendAsset']]);
?>
Нет анкет без заявлений
'; ?>
= GridView::widget([
'hover' => true,
'headerContainer' => ['class' => 'thead-light'],
'tableOptions' => ['class' => 'table-sm valign-middle'],
'striped' => false,
'summary' => false,
'dataProvider' => $questionaries,
'filterModel' => $searchModel,
'emptyText' => $emptyText,
'pager' => [
'firstPageLabel' => '<<',
'prevPageLabel' => '<',
'nextPageLabel' => '>',
'lastPageLabel' => '>>',
],
'columns' => [
['class' => SerialColumn::class],
[
'attribute' => 'fio',
],
[
'attribute' => 'usermail',
],
[
'attribute' => 'created_at',
'label' => Yii::t('sandbox/questionaries', 'Подпись для колонки с датой создания анкеты: `Дата создания`'),
'format' => ['date', 'php:d.m.Y H:i'],
],
[
'class' => ActionColumn::class,
'template' => '{view-questionary}',
'buttons' => [
'view-questionary' => function ($url, $model) {
return Html::a('
Посмотреть', $url, ['class' => 'btn btn-outline-secondary']);
}
],
],
],
]); ?>