Form element 'header' used to be used for rendering the page contents.
This led to layout problems in non-gecko browsers. This patch fixes the
issue by using raw 'html' element to render the page contents.
$mform = $this->_form;
$contents = $this->_customdata['contents'];
- $mform->addElement('header', 'pageheader', $OUTPUT->box($contents, 'contents'));
+ $mform->addElement('header', 'pageheader');
+
+ $mform->addElement('html', $OUTPUT->container($contents, 'contents'));
$options = new stdClass;
$options->para = false;
$this->add_action_buttons(null, get_string("pleaseenteryouranswerinthebox", "lesson"));
}
-}
\ No newline at end of file
+}
$lessonid = $this->_customdata['lessonid'];
$contents = $this->_customdata['contents'];
- $mform->addElement('header', 'pageheader', $OUTPUT->box($contents, 'contents'));
+ $mform->addElement('header', 'pageheader');
+
+ $mform->addElement('html', $OUTPUT->container($contents, 'contents'));
$options = new stdClass;
$options->para = false;
$this->add_action_buttons(null, get_string("pleasematchtheabovepairs", "lesson"));
}
-}
\ No newline at end of file
+}
$attempt = new stdClass();
$attempt->answerid = null;
}
- $mform->addElement('header', 'pageheader', $OUTPUT->box($contents, 'contents'));
+
+ $mform->addElement('header', 'pageheader');
+
+ $mform->addElement('html', $OUTPUT->container($contents, 'contents'));
$options = new stdClass;
$options->para = false;
$lessonid = $this->_customdata['lessonid'];
$contents = $this->_customdata['contents'];
- $mform->addElement('header', 'pageheader', $OUTPUT->box($contents, 'contents'));
+ $mform->addElement('header', 'pageheader');
+
+ $mform->addElement('html', $OUTPUT->container($contents, 'contents'));
$options = new stdClass;
$options->para = false;
$mform = $this->_form;
$contents = $this->_customdata['contents'];
- $mform->addElement('header', 'pageheader', $OUTPUT->box($contents, 'contents'));
+ $mform->addElement('header', 'pageheader');
+
+ $mform->addElement('html', $OUTPUT->container($contents, 'contents'));
$options = new stdClass;
$options->para = false;
$this->add_action_buttons(null, get_string("pleaseenteryouranswerinthebox", "lesson"));
}
-}
\ No newline at end of file
+}
$mform = $this->_form;
$contents = $this->_customdata['contents'];
- $mform->addElement('header', 'pageheader', $OUTPUT->box($contents, 'contents'));
+ $mform->addElement('header', 'pageheader');
+
+ $mform->addElement('html', $OUTPUT->container($contents, 'contents'));
$options = new stdClass;
$options->para = false;
$attempt->answerid = null;
}
- $mform->addElement('header', 'pageheader', $OUTPUT->box($contents, 'contents'));
+ $mform->addElement('header', 'pageheader');
+
+ $mform->addElement('html', $OUTPUT->container($contents, 'contents'));
$options = new stdClass();
$options->para = false;
$this->add_action_buttons(null, get_string("pleasecheckoneanswer", "lesson"));
}
-}
\ No newline at end of file
+}