change time widget in question and questionnaire forms
This commit is contained in:
@ -50,10 +50,11 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
'updated_at',
|
||||
[
|
||||
'attribute' => 'time_limit',
|
||||
'format' => 'raw',
|
||||
'value' => function($model){
|
||||
return \common\helpers\TimeHelper::limitTime($model->time_limit);
|
||||
}
|
||||
]
|
||||
],
|
||||
],
|
||||
]) ?>
|
||||
|
||||
@ -70,7 +71,13 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
'filterModel' => $questionSearchModel,
|
||||
'columns' => [
|
||||
['class' => 'yii\grid\SerialColumn'],
|
||||
'question_type_id',
|
||||
[
|
||||
'attribute' => 'question_type_id',
|
||||
'filter' => \yii\helpers\ArrayHelper::map(\backend\modules\questionnaire\models\QuestionType::find()->all(), 'id', 'question_type'),
|
||||
'value' => function($model){
|
||||
return $model->getQuestionTitle();
|
||||
}
|
||||
],
|
||||
'question_body',
|
||||
[
|
||||
'attribute' => 'status',
|
||||
|
Reference in New Issue
Block a user