mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Tidied up attemptpage with password
This commit is contained in:
parent
3230a30655
commit
cbf8fb4597
@ -82,6 +82,11 @@
|
||||
/// Check password access
|
||||
if ($quiz->password) {
|
||||
if (empty($_POST['quizpassword'])) {
|
||||
|
||||
print_heading($quiz->name);
|
||||
print_heading(get_string("attempt", "quiz", $attemptnumber));
|
||||
print_simple_box(format_text($quiz->intro), "CENTER");
|
||||
echo "<br />\n";
|
||||
|
||||
echo "<form name=\"passwordform\" method=\"post\" action=\"attempt.php?q=$quiz->id\">\n";
|
||||
print_simple_box_start("center");
|
||||
|
Loading…
x
Reference in New Issue
Block a user