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

'btn btn-success']) ?>

$dataProvider, 'filterModel' => $searchModel, 'columns' => [ ['class' => 'yii\grid\SerialColumn'], // 'id', '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', 'value' => function ($model) { return \yii\helpers\Html::tag( 'span', $model->status ? 'Active' : 'Not Active', [ 'class' => 'label label-' . ($model->status ? 'success' : 'danger'), ] ); }, ], //'created_at', //'updated_at', [ 'attribute' => 'time_limit', 'value' => function($model){ return $model->limitTime; } ], 'score', ['class' => 'yii\grid\ActionColumn'], ], ]); ?>