Skip to content

Commit ccfbbef

Browse files
committed
adds tooltips for target group and target role form elements.
1 parent 2a48c67 commit ccfbbef

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

edit_form.php

+2
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ protected function definition(): void {
262262
}
263263

264264
$mform->addElement('select', 'roleid', get_string('assignrole', 'enrol_ilios'), $roles);
265+
$mform->addHelpButton('roleid', 'assignrole', 'enrol_ilios');
265266
$mform->setDefault('roleid', $enrol->get_config('roleid'));
266267

267268
$groups = [0 => get_string('none')];
@@ -270,6 +271,7 @@ protected function definition(): void {
270271
}
271272

272273
$mform->addElement('select', 'customint6', get_string('addgroup', 'enrol_ilios'), $groups);
274+
$mform->addHelpButton('customint6', 'addgroup', 'enrol_ilios');
273275

274276
$mform->addElement('hidden', 'courseid', null);
275277
$mform->setType('courseid', PARAM_INT);

lang/en/enrol_ilios.php

+2
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@
2424
*/
2525

2626
$string['addgroup'] = 'Add to group';
27+
$string['addgroup_help'] = 'If selected, then users are added to the specified user-group as part of their enrolment into this course.';
2728
$string['ajaxmore'] = 'More...';
2829
$string['apikey'] = 'Ilios API key';
2930
$string['apikey_desc'] = 'Enter the API key obtained from your Ilios server.';
3031
$string['assignrole'] = 'Assign role';
32+
$string['assignrole_help'] = 'If selected, then users are enroled with the specified user-role into this course.';
3133
$string['cohort'] = 'Program year/Cohort (groups) (learners)';
3234
$string['cohort_help'] = 'This corresponds to the Cohorts in Ilios.';
3335
$string['cohortoptionsupdate'] = 'Update cohort options';

lang/en_us/enrol_ilios.php

+2
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@
2424
*/
2525

2626
$string['addgroup'] = 'Add to group';
27+
$string['addgroup_help'] = 'If selected, then users are added to the specified user-group as part of their enrolment into this course.';
2728
$string['ajaxmore'] = 'More...';
2829
$string['apikey'] = 'Ilios API key';
2930
$string['apikey_desc'] = 'Enter the API key obtained from your Ilios server.';
3031
$string['assignrole'] = 'Assign role';
32+
$string['assignrole_help'] = 'If selected, then users are enrolled with the specified user-role into this course.';
3133
$string['cohort'] = 'Program year/Cohort (groups) (learners)';
3234
$string['cohort_help'] = 'This corresponds to the Cohorts in Ilios.';
3335
$string['cohortoptionsupdate'] = 'Update cohort options';

0 commit comments

Comments
 (0)