How to move Quiz buttons

How to move Quiz buttons

- Ali Hastie の投稿
返信数: 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.

添付 quiz.jpg
Ali Hastie への返信

Re: How to move Quiz buttons

- Tim Hunt の投稿
画像 Core developers 画像 Documentation writers 画像 Particularly helpful Moodlers 画像 Peer reviewers 画像 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
Tim Hunt への返信

Re: How to move Quiz buttons

- 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";

}