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

'btn btn-success']) ?>

$dataProvider, 'filterModel' => $searchModel, 'columns' => [ ['class' => 'yii\grid\SerialColumn'], [ 'filter' => Question::find()->select(['question_body', 'id'])->where(['!=', 'question_type_id', '1'])->indexBy('id')->column(), 'attribute' => 'question_id', 'value' => 'question.question_body' ], 'answer_body', [ 'attribute' => 'answer_flag', 'format' => 'raw', 'filter' => AnswerHelper::answerFlagsList(), 'value' => function ($model) { return AnswerHelper::answerStatusLabel($model->answer_flag); }, ], [ 'attribute' => 'status', 'format' => 'raw', 'filter' => StatusHelper::statusList(), 'value' => function($model){ return StatusHelper::statusLabel($model->status); } ], ['class' => 'yii\grid\ActionColumn'], ], ]); ?>