Skip to content

Commit

Permalink
MDL-23381 Added group info on the group memberships page (still a tab…
Browse files Browse the repository at this point in the history
…le, needs to be divs)
  • Loading branch information
moodler committed Jul 19, 2010
1 parent c1a6ef1 commit 74feb96
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions group/members.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,30 @@
$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
?>

<div id="addmembersform">
<h3 class="main"><?php print_string('adduserstogroup', 'group'); echo ": $groupname"; ?></h3>

<form id="assignform" method="post" action="<?php echo $CFG->wwwroot; ?>/group/members.php?group=<?php echo $groupid; ?>">
<div>
<input type="hidden" name="sesskey" value="<?php p(sesskey()); ?>" />
Expand Down

0 comments on commit 74feb96

Please sign in to comment.