enrol MDL-23117 Implements the other users UI for users with roles in a course but not enrolled.

At the same time this commit introduces a standardised dialogue YUI module to enrol and implements it across the board.
This commit also addresses MDL-23292 and MDL-23319.
This commit is contained in:
Sam Hemelryk
2010-07-16 08:30:06 +00:00
parent ad0ae2610f
commit 6db3eee02b
21 changed files with 1443 additions and 160 deletions
+2 -1
View File
@@ -46,7 +46,7 @@ require_capability('moodle/course:enrolreview', $context);
$PAGE->set_pagelayout('admin');
$manager = new course_enrolment_manager($course, $filter);
$table = new course_enrolment_table($manager, $PAGE->url);
$table = new course_enrolment_users_table($manager, $PAGE->url);
$pageurl = new moodle_url($PAGE->url, $manager->get_url_params()+$table->get_url_params());
// Check if there is an action to take
@@ -226,6 +226,7 @@ foreach ($users as $userid=>&$user) {
$user['group'] = $renderer->user_groups_and_actions($userid, $user['groups'], $manager->get_all_groups(), has_capability('moodle/course:managegroups', $manager->get_context()), $pageurl);
$user['enrol'] = $renderer->user_enrolments_and_actions($userid, $user['enrolments'], $pageurl);
}
$table->set_total_users($manager->get_total_users());
$table->set_users($users);
$PAGE->set_title($PAGE->course->fullname.': '.get_string('totalenrolledusers', 'enrol', $manager->get_total_users()));