mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
Show a link to edit the questions in categories if the quiz has already
been attempted.
This commit is contained in:
parent
100808a270
commit
23cd73acbc
@ -387,6 +387,13 @@
|
||||
}
|
||||
notify("$strattemptsexist<br /><a href=\"attempts.php?id=$cm->id\">$strviewallanswers ($usercount $strusers)</a>");
|
||||
|
||||
echo "<center>\n";
|
||||
echo "<form target=\"_parent\" method=\"get\" action=\"$CFG->wwwroot/mod/quiz/edit.php\">\n";
|
||||
echo " <input type=\"hidden\" name=\"courseid\" value=\"$course->id\" />\n";
|
||||
echo " <input type=\"submit\" value=\"".get_string("editcatquestions", "quiz")."\" />\n";
|
||||
echo "</form>";
|
||||
echo "</center>\n";
|
||||
|
||||
$sumgrades = quiz_print_question_list($modform, false, $SESSION->quiz_showbreaks);
|
||||
if (!set_field('quiz', 'sumgrades', $sumgrades, 'id', $modform->instance)) {
|
||||
error('Failed to set sumgrades');
|
||||
|
Loading…
x
Reference in New Issue
Block a user