Permalink
Browse files

Merge branch 'lesson-rendering' of git://github.com/mudrd8mz/moodle

  • Loading branch information...
2 parents e49c603 + ffdf7f8 commit d33d813d91ade1a7bf8bbf99c8b821e8d40d5807 @stronk7 stronk7 committed Feb 22, 2011
@@ -252,7 +252,9 @@ public function definition() {
$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;
@@ -270,4 +272,4 @@ public function definition() {
$this->add_action_buttons(null, get_string("pleaseenteryouranswerinthebox", "lesson"));
}
-}
+}
@@ -483,7 +483,9 @@ public function definition() {
$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;
@@ -514,4 +516,4 @@ public function definition() {
$this->add_action_buttons(null, get_string("pleasematchtheabovepairs", "lesson"));
}
-}
+}
@@ -485,7 +485,10 @@ public function definition() {
$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;
@@ -524,7 +527,9 @@ public function definition() {
$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;
@@ -264,7 +264,9 @@ public function definition() {
$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;
@@ -282,4 +284,4 @@ public function definition() {
$this->add_action_buttons(null, get_string("pleaseenteryouranswerinthebox", "lesson"));
}
-}
+}
@@ -331,7 +331,9 @@ public function definition() {
$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;
@@ -299,7 +299,9 @@ public function definition() {
$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;
@@ -326,4 +328,4 @@ public function definition() {
$this->add_action_buttons(null, get_string("pleasecheckoneanswer", "lesson"));
}
-}
+}
View
@@ -283,7 +283,7 @@ public function display_edit_full(lesson $lesson, $pageid, $prevpageid, $single=
$cell = new html_table_cell();
$cell->colspan = 2;
- $cell->style = 'text-align:center';
+ $cell->style = 'text-align:left';
$cell->text = $page->contents;
$pagetable->data[] = new html_table_row(array($cell));

0 comments on commit d33d813

Please sign in to comment.