mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-31102 question preview: fix HTML validation errors.
This commit is contained in:
parent
f70f6e9ad1
commit
16f75808c7
2 changed files with 3 additions and 1 deletions
|
@ -228,8 +228,10 @@ echo $OUTPUT->header();
|
||||||
// Start the question form.
|
// Start the question form.
|
||||||
echo '<form method="post" action="' . $actionurl .
|
echo '<form method="post" action="' . $actionurl .
|
||||||
'" enctype="multipart/form-data" id="responseform">', "\n";
|
'" enctype="multipart/form-data" id="responseform">', "\n";
|
||||||
|
echo '<div>';
|
||||||
echo '<input type="hidden" name="sesskey" value="' . sesskey() . '" />', "\n";
|
echo '<input type="hidden" name="sesskey" value="' . sesskey() . '" />', "\n";
|
||||||
echo '<input type="hidden" name="slots" value="' . $slot . '" />', "\n";
|
echo '<input type="hidden" name="slots" value="' . $slot . '" />', "\n";
|
||||||
|
echo '</div>';
|
||||||
|
|
||||||
// Output the question.
|
// Output the question.
|
||||||
echo $quba->render_question($slot, $options, $displaynumber);
|
echo $quba->render_question($slot, $options, $displaynumber);
|
||||||
|
|
|
@ -89,7 +89,7 @@ class preview_options_form extends moodleform {
|
||||||
get_string('responsehistory', 'question'), $hiddenofvisible);
|
get_string('responsehistory', 'question'), $hiddenofvisible);
|
||||||
|
|
||||||
$mform->addElement('submit', 'submit',
|
$mform->addElement('submit', 'submit',
|
||||||
get_string('restartwiththeseoptions', 'question'), $hiddenofvisible);
|
get_string('restartwiththeseoptions', 'question'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue