mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Merge branch 'MDL-76069-master' of https://github.com/mihailges/moodle
This commit is contained in:
commit
fdef0eec44
2 changed files with 8 additions and 5 deletions
|
@ -54,6 +54,7 @@ $string['expirymessageenrolledbody'] = 'Dear {$a->user},
|
||||||
This is a notification that your enrolment in the course \'{$a->course}\' is due to expire on {$a->timeend}.
|
This is a notification that your enrolment in the course \'{$a->course}\' is due to expire on {$a->timeend}.
|
||||||
|
|
||||||
If you need help, please contact {$a->enroller}.';
|
If you need help, please contact {$a->enroller}.';
|
||||||
|
$string['managemanualenrolements'] = 'Manage manual enrolments';
|
||||||
$string['manual:config'] = 'Configure manual enrol instances';
|
$string['manual:config'] = 'Configure manual enrol instances';
|
||||||
$string['manual:enrol'] = 'Enrol users';
|
$string['manual:enrol'] = 'Enrol users';
|
||||||
$string['manual:manage'] = 'Manage user enrolments';
|
$string['manual:manage'] = 'Manage user enrolments';
|
||||||
|
|
|
@ -63,13 +63,15 @@ if (!$enrol_manual = enrol_get_plugin('manual')) {
|
||||||
throw new coding_exception('Can not instantiate enrol_manual');
|
throw new coding_exception('Can not instantiate enrol_manual');
|
||||||
}
|
}
|
||||||
|
|
||||||
$instancename = $enrol_manual->get_instance_name($instance);
|
$url = new moodle_url('/enrol/manual/manage.php', ['enrolid' => $instance->id]);
|
||||||
|
$title = get_string('managemanualenrolements', 'enrol_manual');
|
||||||
|
|
||||||
$PAGE->set_url('/enrol/manual/manage.php', array('enrolid'=>$instance->id));
|
$PAGE->set_url($url);
|
||||||
$PAGE->set_pagelayout('admin');
|
$PAGE->set_pagelayout('admin');
|
||||||
$PAGE->set_title($enrol_manual->get_instance_name($instance));
|
$PAGE->set_title($title);
|
||||||
$PAGE->set_heading($course->fullname);
|
$PAGE->set_heading($course->fullname);
|
||||||
navigation_node::override_active_url(new moodle_url('/user/index.php', array('id'=>$course->id)));
|
navigation_node::override_active_url(new moodle_url('/enrol/instances.php', ['id' => $course->id]));
|
||||||
|
$PAGE->navbar->add($title, $url);
|
||||||
|
|
||||||
// Create the user selector objects.
|
// Create the user selector objects.
|
||||||
$options = array('enrolid' => $enrolid, 'accesscontext' => $context);
|
$options = array('enrolid' => $enrolid, 'accesscontext' => $context);
|
||||||
|
@ -168,7 +170,7 @@ if ($canunenrol && optional_param('remove', false, PARAM_BOOL) && confirm_sesske
|
||||||
|
|
||||||
|
|
||||||
echo $OUTPUT->header();
|
echo $OUTPUT->header();
|
||||||
echo $OUTPUT->heading($instancename);
|
echo $OUTPUT->heading($title);
|
||||||
|
|
||||||
$addenabled = $canenrol ? '' : 'disabled="disabled"';
|
$addenabled = $canenrol ? '' : 'disabled="disabled"';
|
||||||
$removeenabled = $canunenrol ? '' : 'disabled="disabled"';
|
$removeenabled = $canunenrol ? '' : 'disabled="disabled"';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue