MDL-31102 question preview: fix HTML validation errors.

This commit is contained in:
Tim Hunt 2012-01-10 15:39:37 +00:00 committed by kordan
parent 92a5f438a7
commit 425342ced4
2 changed files with 3 additions and 1 deletions

View File

@ -228,8 +228,10 @@ echo $OUTPUT->header();
// Start the question form.
echo '<form method="post" action="' . $actionurl .
'" enctype="multipart/form-data" id="responseform">', "\n";
echo '<div>';
echo '<input type="hidden" name="sesskey" value="' . sesskey() . '" />', "\n";
echo '<input type="hidden" name="slots" value="' . $slot . '" />', "\n";
echo '</div>';
// Output the question.
echo $quba->render_question($slot, $options, $displaynumber);

View File

@ -89,7 +89,7 @@ class preview_options_form extends moodleform {
get_string('responsehistory', 'question'), $hiddenofvisible);
$mform->addElement('submit', 'submit',
get_string('restartwiththeseoptions', 'question'), $hiddenofvisible);
get_string('restartwiththeseoptions', 'question'));
}
}