mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-28273 waring that removing user from cohorts may unenrol from courses
This commit is contained in:
parent
f6f6138379
commit
5121a95da2
2 changed files with 3 additions and 0 deletions
|
@ -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));
|
||||||
|
|
|
@ -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';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue