MDL-48368 course: Add warning message to pending courses page

This commit is contained in:
Simey Lameze 2014-12-08 17:09:58 +08:00 committed by Dan Poltawski
parent 52ecd1de0a
commit 82356399b9
2 changed files with 3 additions and 0 deletions

View file

@ -96,6 +96,8 @@ if (empty($pending)) {
echo $OUTPUT->heading(get_string('nopendingcourses')); echo $OUTPUT->heading(get_string('nopendingcourses'));
} else { } else {
echo $OUTPUT->heading(get_string('coursespending')); 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. /// Build a table of all the requests.
$table = new html_table(); $table = new html_table();

View file

@ -373,6 +373,7 @@ $string['courserequestintro'] = 'Use this form to request a course to be created
$string['courserequestreason'] = 'Reasons for wanting this course'; $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['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['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['courserestore'] = 'Course restore';
$string['courses'] = 'Courses'; $string['courses'] = 'Courses';
$string['coursesectionsummaries'] = 'Course section summaries'; $string['coursesectionsummaries'] = 'Course section summaries';