quiz editing: MDL-18355 Try to improve the discoverability of Description again.

This commit is contained in:
tjhunt
2009-02-26 06:33:18 +00:00
parent 8ed358dbca
commit b974f94757
4 changed files with 56 additions and 23 deletions
+13 -1
View File
@@ -1837,13 +1837,25 @@ function print_choose_qtype_to_add_form($hiddenparams) {
echo '<input type="hidden" name="' . s($name) . '" value="' . s($value) . '" />' . "\n";
}
echo "</div>\n";
$types = question_type_menu();
echo '<div class="qtypes">' . "\n";
echo '<div class="instruction">' . get_string('selectaqtypefordescription', 'question') . "</div>\n";
echo '<div class="realqtypes">' . "\n";
$types = question_type_menu();
$fakeqtypes = array();
foreach ($types as $qtype => $localizedname) {
if ($QTYPES[$qtype]->is_real_question_type()) {
print_qtype_to_add_option($qtype, $localizedname);
} else {
$fakeqtypes[$qtype] = $localizedname;
}
}
echo "</div>\n";
echo '<div class="fakeqtypes">' . "\n";
foreach ($fakeqtypes as $qtype => $localizedname) {
print_qtype_to_add_option($qtype, $localizedname);
}
echo "</div>\n";
echo "</div>\n";
echo '<div class="submitbuttons">' . "\n";
echo '<input type="submit" value="' . get_string('next') . '" id="chooseqtype_submit" />' . "\n";
echo '<input type="submit" id="chooseqtypecancel" name="addcancel" value="' . get_string('cancel') . '" />' . "\n";