add output of the percentage of correct answers

This commit is contained in:
iIronside
2021-10-25 13:41:12 +03:00
parent e362ad45a4
commit 84ec9ef9c7
10 changed files with 1313 additions and 6 deletions

View File

@ -39,6 +39,13 @@ $this->params['breadcrumbs'][] = $this->title;
],
// 'UUID',
'score',
[
'attribute' => 'percent_correct_answers',
'value' => function($model) {
$percent = $model->percent_correct_answers * 100;
return $percent . '%';
}
],
[
'attribute' => 'status',
'format' => 'raw',