title = 'Ответы пользователей'; $this->params['breadcrumbs'][] = $this->title; ?>
render('_search', ['model' => $searchModel]); ?>

'btn btn-success']) ?>

$dataProvider, 'filterModel' => $searchModel, 'columns' => [ ['class' => 'yii\grid\SerialColumn'], // 'id', // 'user_id', [ 'attribute' => 'user_questionnaire_id', 'value' => function($model){ return $model->getQuestionnaireTitle(); } ], // 'user_questionnaire_id', [ 'attribute' => 'user_id', 'value' => function($model){ return $model->getUserName(); } ], [ 'attribute' => 'question_id', 'value' => function($model){ return $model->getQuestionBody(); } ], 'response_body', [ 'attribute' => 'Тип вопроса', 'value' => function($model){ return $model->getQuestionType(); } ], [ 'attribute' => 'answer_flag', 'format' => 'raw', 'value' => function ($model) { return \common\helpers\AnswerHelper::answerFlagLable($model->answer_flag); }, ], // 'created_at', // 'updated_at', ['class' => 'yii\grid\ActionColumn'], ], ]); ?>