mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
Merge branch 'MDL-41693-master' of git://github.com/FMCorz/moodle
This commit is contained in:
commit
ad1ad9f5b4
@ -50,6 +50,11 @@ $strgroups = get_string('groups');
|
||||
$strparticipants = get_string('participants');
|
||||
$strautocreategroups = get_string('autocreategroups', 'group');
|
||||
|
||||
$PAGE->set_title($strgroups);
|
||||
$PAGE->set_heading($course->fullname. ': '.$strgroups);
|
||||
$PAGE->set_pagelayout('standard');
|
||||
navigation_node::override_active_url(new moodle_url('/group/index.php', array('id' => $courseid)));
|
||||
|
||||
// Print the page and form
|
||||
$preview = '';
|
||||
$error = '';
|
||||
@ -233,9 +238,6 @@ $PAGE->navbar->add($strparticipants, new moodle_url('/user/index.php', array('id
|
||||
$PAGE->navbar->add($strgroups, new moodle_url('/group/index.php', array('id'=>$courseid)));
|
||||
$PAGE->navbar->add($strautocreategroups);
|
||||
|
||||
/// Print header
|
||||
$PAGE->set_title($strgroups);
|
||||
$PAGE->set_heading($course->fullname. ': '.$strgroups);
|
||||
echo $OUTPUT->header();
|
||||
echo $OUTPUT->heading($strautocreategroups);
|
||||
|
||||
|
@ -32,6 +32,7 @@ $groupids = required_param('groups', PARAM_SEQUENCE);
|
||||
$confirm = optional_param('confirm', 0, PARAM_BOOL);
|
||||
|
||||
$PAGE->set_url('/group/delete.php', array('courseid'=>$courseid,'groups'=>$groupids));
|
||||
$PAGE->set_pagelayout('standard');
|
||||
|
||||
// Make sure course is OK and user has access to manage groups
|
||||
if (!$course = $DB->get_record('course', array('id' => $courseid))) {
|
||||
|
@ -74,6 +74,12 @@ require_login($course);
|
||||
$context = context_course::instance($course->id);
|
||||
require_capability('moodle/course:managegroups', $context);
|
||||
|
||||
$strgroups = get_string('groups');
|
||||
$PAGE->set_title($strgroups);
|
||||
$PAGE->set_heading($course->fullname . ': '.$strgroups);
|
||||
$PAGE->set_pagelayout('standard');
|
||||
navigation_node::override_active_url(new moodle_url('/group/index.php', array('id' => $course->id)));
|
||||
|
||||
$returnurl = $CFG->wwwroot.'/group/index.php?id='.$course->id.'&group='.$id;
|
||||
|
||||
// Prepare the description editor: We do support files for group descriptions
|
||||
@ -123,8 +129,6 @@ $PAGE->navbar->add($strgroups, new moodle_url('/group/index.php', array('id'=>$c
|
||||
$PAGE->navbar->add($strheading);
|
||||
|
||||
/// Print header
|
||||
$PAGE->set_title($strgroups);
|
||||
$PAGE->set_heading($course->fullname . ': '.$strgroups);
|
||||
echo $OUTPUT->header();
|
||||
echo '<div id="grouppicture">';
|
||||
if ($id) {
|
||||
|
@ -66,8 +66,13 @@ require_login($course);
|
||||
$context = context_course::instance($course->id);
|
||||
require_capability('moodle/course:managegroups', $context);
|
||||
|
||||
$returnurl = $CFG->wwwroot.'/group/groupings.php?id='.$course->id;
|
||||
$strgroupings = get_string('groupings', 'group');
|
||||
$PAGE->set_title($strgroupings);
|
||||
$PAGE->set_heading($course->fullname. ': '.$strgroupings);
|
||||
$PAGE->set_pagelayout('standard');
|
||||
navigation_node::override_active_url(new moodle_url('/group/index.php', array('id' => $course->id)));
|
||||
|
||||
$returnurl = $CFG->wwwroot.'/group/groupings.php?id='.$course->id;
|
||||
|
||||
if ($id and $delete) {
|
||||
if (!empty($grouping->idnumber) && !has_capability('moodle/course:changeidnumber', $context)) {
|
||||
@ -126,9 +131,7 @@ if ($editform->is_cancelled()) {
|
||||
|
||||
}
|
||||
|
||||
$strgroupings = get_string('groupings', 'group');
|
||||
$strparticipants = get_string('participants');
|
||||
|
||||
if ($id) {
|
||||
$strheading = get_string('editgroupingsettings', 'group');
|
||||
} else {
|
||||
@ -140,8 +143,6 @@ $PAGE->navbar->add($strgroupings, new moodle_url('/group/groupings.php', array('
|
||||
$PAGE->navbar->add($strheading);
|
||||
|
||||
/// Print header
|
||||
$PAGE->set_title($strgroupings);
|
||||
$PAGE->set_heading($course->fullname. ': '.$strgroupings);
|
||||
echo $OUTPUT->header();
|
||||
echo $OUTPUT->heading($strheading);
|
||||
$editform->display();
|
||||
|
@ -144,7 +144,7 @@ $strparticipants = get_string('participants');
|
||||
/// Print header
|
||||
$PAGE->set_title($strgroups);
|
||||
$PAGE->set_heading($course->fullname);
|
||||
$PAGE->set_pagelayout('admin');
|
||||
$PAGE->set_pagelayout('standard');
|
||||
echo $OUTPUT->header();
|
||||
|
||||
// Add tabs
|
||||
|
Loading…
x
Reference in New Issue
Block a user