mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-11340 Almost complete: Just need the "Add grade letter" button
This commit is contained in:
parent
fca490bca0
commit
dbdffd2c96
5 changed files with 20 additions and 25 deletions
|
@ -297,6 +297,14 @@ function print_grade_plugin_selector($courseid, $active_type, $active_plugin, $r
|
|||
$menu[$url] = get_string('edittree', 'grades');
|
||||
}
|
||||
|
||||
if (has_capability('moodle/grade:manage', $context)) {
|
||||
$url = 'edit/gradedisplay/index.php?id='.$courseid;
|
||||
if ($active_type == 'edit' and $active_plugin == 'gradedisplay' ) {
|
||||
$active = $url;
|
||||
}
|
||||
$menu[$url] = get_string('gradedisplay', 'grades');
|
||||
}
|
||||
|
||||
if (has_capability('moodle/course:managescales', $context)) {
|
||||
$url = 'edit/scale/index.php?id='.$courseid;
|
||||
if ($active_type == 'edit' and $active_plugin == 'scale' ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue