title = 'Список анкет'; $this->params['breadcrumbs'][] = $this->title; ?>
render('_search', ['model' => $searchModel]); ?>

'btn btn-success']) ?>

$dataProvider, 'filterModel' => $searchModel, 'columns' => [ ['class' => 'yii\grid\SerialColumn'], 'title', [ 'attribute' => 'status', 'format' => 'raw', 'filter' => StatusHelper::statusList(), 'value' => function($model){ return StatusHelper::statusLabel($model->status); } ], [ 'attribute' => 'category_id', 'filter' => QuestionnaireCategory::find()->select(['title', 'id'])->indexBy('id')->column(), 'value' => 'category.title' ], [ 'attribute' => 'time_limit', 'format' => 'raw', 'value' => function($model){ return TimeHelper::limitTime($model->time_limit); } ], ['class' => 'yii\grid\ActionColumn'], ], ]); ?>