MDL-38490 question preview, variant is attempt (not display) option

This commit is contained in:
Tim Hunt
2013-03-14 17:22:32 +00:00
parent a812924762
commit fe9f42de4d
+5 -5
View File
@@ -56,11 +56,6 @@ class preview_options_form extends moodleform {
array('size' => '5'));
$mform->setType('maxmark', PARAM_FLOAT);
$mform->addElement('submit', 'saverestart',
get_string('restartwiththeseoptions', 'question'));
$mform->addElement('header', 'optionsheader', get_string('displayoptions', 'question'));
if ($this->_customdata['maxvariant'] > 1) {
$variants = range(1, $this->_customdata['maxvariant']);
$mform->addElement('select', 'variant', get_string('questionvariant', 'question'),
@@ -68,6 +63,11 @@ class preview_options_form extends moodleform {
}
$mform->setType('variant', PARAM_INT);
$mform->addElement('submit', 'saverestart',
get_string('restartwiththeseoptions', 'question'));
$mform->addElement('header', 'optionsheader', get_string('displayoptions', 'question'));
$mform->addElement('select', 'correctness', get_string('whethercorrect', 'question'),
$hiddenofvisible);