How to move Quiz buttons

How to move Quiz buttons

by Ali Hastie -
Number of replies: 2

Hi

We would like to move both the 'Save without submitting' and 'Submit all and finish' buttons below the quiz question page navigation. How and where can I carry this out?

Cheers

Ali.

Attachment quiz.jpg
Average of ratings: -
In reply to Ali Hastie

Re: How to move Quiz buttons

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
This is probably easy to change is you are prepared to hack round with the code near the end of mod/quiz/attempt.php
In reply to Tim Hunt

Re: How to move Quiz buttons

by Ali Hastie -

Thanks Tim, maybe I should have realised that myself blush

If anyone else wishes to do this here is the code:

// Print the navigation panel if required

if ($numpages > 1) {

quiz_print_navigation_panel($page, $numpages);

echo "</div>";

/// Print the submit buttons

$strconfirmattempt = addslashes(get_string("confirmclose", "quiz"));

$onclick = "return confirm('$strconfirmattempt')";

echo "<div class=\"submitbtns mdl-align\">\n";

echo "<input type=\"submit\" name=\"saveattempt\" value=\"".get_string("savenosubmit", "quiz")."\" />\n";

if ($quiz->optionflags & QUESTION_ADAPTIVE) {

echo "<input type=\"submit\" name=\"markall\" value=\"".get_string("markall", "quiz")."\" />\n";

}

echo "<input type=\"submit\" name=\"finishattempt\" value=\"".get_string("finishattempt", "quiz")."\" onclick=\"$onclick\" />\n";

}

Average of ratings: Useful (1)