quiz overview report MDL-17569 you should be see essay questions that need grading in the report.
This commit is contained in:
@@ -64,6 +64,7 @@ $string['regradealldrygroup'] = 'Dry run a full regrade for group \'{$a->groupna
|
||||
$string['regradeallgroup'] = 'Full regrade for group \'{$a->groupname}\'';
|
||||
$string['regradeheader'] = 'Regrading';
|
||||
$string['regradeselected'] = 'Regrade selected attempts';
|
||||
$string['requiresgrading'] = 'Requires grading';
|
||||
$string['show'] = 'Include';
|
||||
$string['showattempts'] = 'Include attempts';
|
||||
$string['showdetailedmarks'] = 'Marks for each question';
|
||||
|
||||
@@ -249,6 +249,15 @@ class quiz_report_overview_table extends table_sql {
|
||||
} else {
|
||||
return $grade;
|
||||
}
|
||||
} else if ($stateforqinattempt && question_state_is_closed($stateforqinattempt)) {
|
||||
$text = get_string('requiresgrading', 'quiz_overview');
|
||||
if (!$this->is_downloading()) {
|
||||
$link = new moodle_url("/mod/quiz/reviewquestion.php?attempt=$attempt->attempt&question=$question->id");
|
||||
$action = new popup_action('click', $link, 'reviewquestion', array('height' => 450, 'width' => 650));
|
||||
return $OUTPUT->action_link($link, $text, $action, array('title'=>get_string('reviewresponsetoq', 'quiz', $question->formattedname)));
|
||||
} else {
|
||||
return $text;
|
||||
}
|
||||
} else {
|
||||
return '--';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user