mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Forum grades can now be numerical as well (like the other modules).
If so, grades in the gradebook are printed as proper numbers and contribute to the total of the course.
This commit is contained in:
parent
f2f564066b
commit
d6bdd9d5e9
7 changed files with 48 additions and 17 deletions
|
@ -1383,7 +1383,7 @@ function print_time_selector($hour, $minute, $currenttime=0) {
|
|||
choose_from_menu($minutes, $minute, $currentdate['minutes'], "");
|
||||
}
|
||||
|
||||
function print_grade_menu($courseid, $name, $current) {
|
||||
function print_grade_menu($courseid, $name, $current, $includenograde=true) {
|
||||
/// Prints a grade menu (as part of an existing form) with help
|
||||
/// Showing all possible numerical grades and scales
|
||||
|
||||
|
@ -1396,7 +1396,9 @@ function print_grade_menu($courseid, $name, $current) {
|
|||
foreach ($scales as $i => $scalename) {
|
||||
$grades[-$i] = "$strscale: $scalename";
|
||||
}
|
||||
$grades[0] = get_string("nograde");
|
||||
if ($includenograde) {
|
||||
$grades[0] = get_string("nograde");
|
||||
}
|
||||
for ($i=100; $i>=1; $i--) {
|
||||
$grades[$i] = $i;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue