From 74feb96aa13e07e98c937aaa4399ccf05237faf2 Mon Sep 17 00:00:00 2001 From: Martin Dougiamas Date: Mon, 19 Jul 2010 04:09:13 +0000 Subject: [PATCH] MDL-23381 Added group info on the group memberships page (still a table, needs to be divs) --- group/members.php | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/group/members.php b/group/members.php index 1dd704b33b4..a2d51b2c16f 100644 --- a/group/members.php +++ b/group/members.php @@ -80,11 +80,30 @@ $PAGE->navbar->add($stradduserstogroup); $PAGE->set_title("$course->shortname: $strgroups"); $PAGE->set_heading($course->fullname); echo $OUTPUT->header(); +echo $OUTPUT->heading(get_string('adduserstogroup', 'group').": $groupname", 3); + +/// Print group info - TODO: remove tables for layout here +$groupinfotable = new html_table(); +$groupinfotable->attributes['class'] = 'groupinfobox'; +$picturecell = new html_table_cell(); +$picturecell->attributes['class'] = 'left side picture'; +$picturecell->text = print_group_picture($group, $course->id, true, true, false); + +$contentcell = new html_table_cell(); +$contentcell->attributes['class'] = 'content'; + +$group->description = file_rewrite_pluginfile_urls($group->description, 'pluginfile.php', $context->id, 'group', 'description', $group->id); +if (!isset($group->descriptionformat)) { + $group->descriptionformat = FORMAT_MOODLE; +} +$contentcell->text = format_text($group->description, $group->descriptionformat); +$groupinfotable->data[] = new html_table_row(array($picturecell, $contentcell)); +echo html_writer::table($groupinfotable); + +/// Print the editing form ?>
-

-