Skip to content

Commit

Permalink
quiz overview report MDL-17569 you should be see essay questions that…
Browse files Browse the repository at this point in the history
… need grading in the report.
  • Loading branch information
timhunt committed Aug 6, 2010
1 parent 8b7d4fb commit d39ba35
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions mod/quiz/report/overview/lang/en/quiz_overview.php
Expand Up @@ -64,6 +64,7 @@
$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';
Expand Down
9 changes: 9 additions & 0 deletions mod/quiz/report/overview/overview_table.php
Expand Up @@ -249,6 +249,15 @@ function other_cols($colname, $attempt){
} 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 '--';
}
Expand Down

0 comments on commit d39ba35

Please sign in to comment.