quiz editing / question bank: MDL-18355 Convert the add question drop-down to be a button that pops up a YUI dialogue.

That allows us to have a few sentences explanation of each question type, and is also easier to fit into a tight layout.

This commit should also fix MDL-18214 Layout screwed in Safari with long category names.
This commit is contained in:
tjhunt
2009-02-25 07:14:03 +00:00
parent b59da3a22a
commit cd120b2344
23 changed files with 489 additions and 138 deletions
+5 -1
View File
@@ -48,6 +48,10 @@ if (!$returnurl) {
$returnurl = "{$CFG->wwwroot}/question/edit.php?courseid={$COURSE->id}";
}
if (optional_param('addcancel', false, PARAM_BOOL)) {
redirect($returnurl);
}
if ($id) {
if (!$question = $DB->get_record('question', array('id' => $id))) {
print_error('questiondoesnotexist', 'question', $returnurl);
@@ -228,7 +232,7 @@ if ($mform->is_cancelled()){
}
} else {
list($streditingquestion,) = $QTYPES[$question->qtype]->get_heading();
$streditingquestion = $QTYPES[$question->qtype]->get_heading();
if ($cm !== null) {
$strmodule = get_string('modulename', $cm->modname);
$strupdatemodule = has_capability('moodle/course:manageactivities', get_context_instance(CONTEXT_COURSE, $COURSE->id))