MDL-18004

This commit is contained in:
nicolasconnault 2009-02-17 11:17:29 +00:00
parent d4a93c208a
commit c4c97a6d82
3 changed files with 16 additions and 3 deletions

View File

@ -76,6 +76,10 @@ if ($mform->is_cancelled()) {
print_grade_page_head($courseid, 'settings', 'coursesettings', get_string('coursesettings', 'grades'));
print_box_start('generalbox boxaligncenter boxwidthnormal centerpara');
echo get_string('coursesettingsexplanation', 'grades');
print_box_end();
$mform->display();
print_footer($course);

View File

@ -440,7 +440,7 @@ function grade_get_plugin_info($courseid, $active_type, $active_plugin) {
$active = $url;
}
$plugin_info['settings']['coursesettings'] = array('id' => 'coursesettings', 'link' => $url, 'string' => get_string('course'));
$plugin_info['settings'] = array('id' => 'coursesettings', 'link' => $url, 'string' => get_string('settings'));
$count++;
}
@ -676,12 +676,20 @@ function print_grade_page_head($courseid, $active_type, $active_plugin=null, $he
$active_type_link = $plugin_info[$active_type]['link'];
}
if (empty($plugin_info[$active_type]['id'])) {
$navlinks[] = array('name' => $stractive_type, 'link' => $active_type_link, 'type' => 'misc');
}
$navlinks[] = array('name' => $stractive_plugin, 'link' => null, 'type' => 'misc');
$navigation = build_navigation($navlinks);
$returnval = print_header_simple($strgrades . ': ' . $stractive_type, ': ' . $stractive_type . ': ' . $stractive_plugin, $navigation, '',
$title = ': ' . $stractive_plugin;
if (empty($plugin_info[$active_type]['id'])) {
$title = ': ' . $stractive_type . ': ' . $stractive_plugin;
}
$returnval = print_header_simple($strgrades . ': ' . $stractive_type, $title, $navigation, '',
$bodytags, true, $buttons, navmenu($COURSE), false, '', $return);
// Guess heading if not given explicitly

View File

@ -123,6 +123,7 @@ $string['coursegradedisplayupdated'] = 'The course grade display type has been u
$string['coursename'] = 'Course name';
$string['coursescales'] = 'Course scales';
$string['coursesettings'] = 'Course settings';
$string['coursesettingsexplanation'] = 'Course settings determine how the gradebook appears for all participants in the course.';
$string['coursetotal'] = 'Course total';
$string['createcategory'] = 'Create category';
$string['createcategoryerror'] = 'Could not create a new category';