Skip to content

Commit

Permalink
Added additional div classes to generalboxes for additional styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Malley committed May 2, 2010
1 parent e21c81f commit a6e1750
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mod/assignment/type/online/assignment.class.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function view() {


if (has_capability('mod/assignment:submit', $context)) { if (has_capability('mod/assignment:submit', $context)) {
if ($editmode) { if ($editmode) {
echo $OUTPUT->box_start('generalbox', 'online'); echo $OUTPUT->box_start('generalbox', 'onlineenter');
$mform->display(); $mform->display();
} else { } else {
echo $OUTPUT->box_start('generalbox boxwidthwide boxaligncenter', 'online'); echo $OUTPUT->box_start('generalbox boxwidthwide boxaligncenter', 'online');
Expand Down
4 changes: 3 additions & 1 deletion mod/assignment/type/upload/assignment.class.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ function view_upload_form() {


if ($this->can_upload_file($submission)) { if ($this->can_upload_file($submission)) {
$mform = new mod_assignment_upload_file_form('upload.php', $this); $mform = new mod_assignment_upload_file_form('upload.php', $this);
$mform->display(); echo "<div class=\"uploadbox\">";
$mform->display();
echo "</div>";
} }


} }
Expand Down
2 changes: 2 additions & 0 deletions mod/assignment/type/uploadsingle/assignment.class.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ function view() {


function view_upload_form() { function view_upload_form() {
$mform = new mod_assignment_upload_file_form('upload.php', $this); $mform = new mod_assignment_upload_file_form('upload.php', $this);
echo "<div class=\"uploadbox\">";
$mform->display(); $mform->display();
echo "</div>";
} }




Expand Down

0 comments on commit a6e1750

Please sign in to comment.