mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-48368 course: Add warning message to pending courses page
This commit is contained in:
parent
52ecd1de0a
commit
82356399b9
@ -96,6 +96,8 @@ if (empty($pending)) {
|
||||
echo $OUTPUT->heading(get_string('nopendingcourses'));
|
||||
} else {
|
||||
echo $OUTPUT->heading(get_string('coursespending'));
|
||||
$role = $DB->get_record('role', array('id' => $CFG->creatornewroleid), '*', MUST_EXIST);
|
||||
echo $OUTPUT->notification(get_string('courserequestwarning', 'core', role_get_name($role)), 'notifyproblem');
|
||||
|
||||
/// Build a table of all the requests.
|
||||
$table = new html_table();
|
||||
|
@ -373,6 +373,7 @@ $string['courserequestintro'] = 'Use this form to request a course to be created
|
||||
$string['courserequestreason'] = 'Reasons for wanting this course';
|
||||
$string['courserequestsuccess'] = 'Your course request has been saved successfully. You will be sent an email to inform you whether your request was approved.';
|
||||
$string['courserequestsupport'] = 'Supporting information to help the administrator evaluate this request';
|
||||
$string['courserequestwarning'] = 'The user requesting this course will be automatically enrolled using the "{$a}" role';
|
||||
$string['courserestore'] = 'Course restore';
|
||||
$string['courses'] = 'Courses';
|
||||
$string['coursesectionsummaries'] = 'Course section summaries';
|
||||
|
Loading…
x
Reference in New Issue
Block a user