mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
4d3145f3d3
MDL-10584: Present more factually correct message when a guest attempts to enrol. Provide a mechanism for specifying which role in a course holds the enrolment key. Merged from STABLE_18
22 lines
540 B
HTML
22 lines
540 B
HTML
<table cellspacing="0" cellpadding="5" border="0" class="boxaligncenter">
|
|
|
|
<tr valign="top">
|
|
<td align="right">enrol_manual_keyholderrole:</td>
|
|
<td>
|
|
<?php
|
|
$roles = get_all_roles();
|
|
$rolenames = array();
|
|
foreach ($roles as $id=>$role) {
|
|
$rolenames[$id]=$role->name;
|
|
}
|
|
choose_from_menu($rolenames, 'enrol_manual_keyholderrole', $frm->enrol_manual_keyholderrole);
|
|
?>
|
|
</td>
|
|
<td>
|
|
<?php print_string("keyholderrole", "enrol_manual") ?>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</table>
|