MDL-28273 waring that removing user from cohorts may unenrol from courses

This commit is contained in:
Petr Skoda 2011-07-09 16:23:36 +02:00
parent f6f6138379
commit 5121a95da2
2 changed files with 3 additions and 0 deletions

View file

@ -62,6 +62,8 @@ $PAGE->set_heading($COURSE->fullname);
echo $OUTPUT->header(); echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('assignto', 'cohort', format_string($cohort->name))); echo $OUTPUT->heading(get_string('assignto', 'cohort', format_string($cohort->name)));
echo $OUTPUT->notification(get_string('removeuserwarning', 'core_cohort'));
// Get the user_selector we will need. // Get the user_selector we will need.
$potentialuserselector = new cohort_candidate_selector('addselect', array('cohortid'=>$cohort->id)); $potentialuserselector = new cohort_candidate_selector('addselect', array('cohortid'=>$cohort->id));
$existinguserselector = new cohort_existing_selector('removeselect', array('cohortid'=>$cohort->id)); $existinguserselector = new cohort_existing_selector('removeselect', array('cohortid'=>$cohort->id));

View file

@ -49,4 +49,5 @@ $string['name'] = 'Name';
$string['nocomponent'] = 'Created manually'; $string['nocomponent'] = 'Created manually';
$string['potusers'] = 'Potential users'; $string['potusers'] = 'Potential users';
$string['potusersmatching'] = 'Potential matching users'; $string['potusersmatching'] = 'Potential matching users';
$string['removeuserwarning'] = 'Removing users from a cohort may result in unenrolling of users from multiple courses which includes deleting of user settings, grades, group membership and other user information from affected courses.';
$string['selectfromcohort'] = 'Select members from cohort'; $string['selectfromcohort'] = 'Select members from cohort';