title = 'Список вопросов'; $this->params['breadcrumbs'][] = $this->title; ?>
= Html::a('Создать вопрос', ['create'], ['class' => 'btn btn-success']) ?>
= GridView::widget([ 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [ ['class' => 'yii\grid\SerialColumn'], 'question_body', [ 'attribute' => 'question_type_id', 'value' => function($model){ return $model->getQuestionTitle(); } ], [ 'attribute' => 'questionnaire_id', 'value' => function($model){ return $model->getQuestionnaireTitle(); } ], 'question_priority', 'next_question', [ 'attribute' => 'status', 'format' => 'raw', 'filter' => \common\helpers\StatusHelper::statusList(), 'value' => function ($model) { return \common\helpers\StatusHelper::statusLabel($model->status); }, ], [ 'attribute' => 'time_limit', 'value' => function($model){ return \common\helpers\TimeHelper::limitTime($model->time_limit); } ], 'score', ['class' => 'yii\grid\ActionColumn'], ], ]); ?>