]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-13011 - Improve import form layout.
authortjhunt <tjhunt>
Tue, 15 Jan 2008 15:25:02 +0000 (15:25 +0000)
committertjhunt <tjhunt>
Tue, 15 Jan 2008 15:25:02 +0000 (15:25 +0000)
question/import_form.php

index 6980078adf82420670222faebde1ec2722c26d14..9ba63c375cf1595d6dc8c0edd0d27a3dc0f597da 100644 (file)
@@ -55,7 +55,7 @@ class question_import_form extends moodleform {
         $this->set_upload_manager(new upload_manager('newfile', true, false, $COURSE, false, 0, false, true, false));
         $mform->addElement('file', 'newfile', get_string('upload'));
 //--------------------------------------------------------------------------------
-        $this->add_action_buttons(true, get_string('uploadthisfile'));
+        $mform->addElement('submit', 'submitbutton', get_string('uploadthisfile'));
 
 //--------------------------------------------------------------------------------
         if (has_capability('moodle/course:managefiles', get_context_instance(CONTEXT_COURSE, $COURSE->id))){
@@ -63,9 +63,11 @@ class question_import_form extends moodleform {
 
             $mform->addElement('choosecoursefile', 'choosefile', get_string('choosefile','quiz'));
 //--------------------------------------------------------------------------------
-            $this->add_action_buttons(true, get_string('importfromthisfile','quiz'));
+            $mform->addElement('submit', 'submitbutton', get_string('importfromthisfile','quiz'));
         }
 //--------------------------------------------------------------------------------
+        $mform->addElement('static', 'dummy', '');
+        $mform->closeHeaderBefore('dummy');
     }
     function get_importfile_name(){
         if ($this->is_submitted() and $this->is_validated()) {