mod/quiz: Add a link back to the course page after a quiz is completed
This commit is contained in:
@@ -256,6 +256,7 @@ $string['giftnonumericalanswers'] = 'No answers found for numerical question';
|
||||
$string['giftnovalidquestion'] = 'No valid question found';
|
||||
$string['giftqtypenotset'] = 'Question type is not set';
|
||||
$string['giftrightbraceerror'] = 'Could not find a }';
|
||||
$string['gobacktocourse'] = 'Click here to go back to the course';
|
||||
$string['grade'] = 'Grade';
|
||||
$string['gradeall'] = 'Grade All';
|
||||
$string['gradeaverage'] = 'Average grade';
|
||||
|
||||
@@ -238,6 +238,9 @@
|
||||
}
|
||||
echo '</tbody></table>';
|
||||
|
||||
// Button to go back to the course page
|
||||
echo '<p align="center"><a href="'.$CFG->wwwroot.'/course/view.php?id='.$quiz->course.'">'.get_string('gobacktocourse', 'quiz').'</a></p>';
|
||||
|
||||
/// Print the navigation panel if required
|
||||
$numpages = quiz_number_of_pages($attempt->layout);
|
||||
if ($numpages > 1 and !$showall) {
|
||||
|
||||
Reference in New Issue
Block a user