Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 1.9
-
Fix Version/s: None
-
Component/s: Gradebook
-
Labels:None
-
Difficulty:Easy
-
Affected Branches:MOODLE_19_STABLE
Description
teachers that looked on the course's "grade overview report" wished to know which
student has submitted an answer to an assignment and is waiting for the grader to grade it.
(it was only showing grades and no grades indications)
so i add a new
symbol to indicate that the student submitted an answer
and that he/she is waiting for the grader to grade it.
to apply the patch, open moodle/grade/report/grader/lib.php line 877 and change :
$studentshtml .= '<span class="gradevalue'.$hidden.$gradepass.'">'.grade_format_gradevalue($gradeval, $item, true, $gradedisplaytype, null).'</span>';
to:
} else {
// who answered but did not get a grade
+ link for grading (nadavkav)
if ( $grade->get_datesubmitted() and empty($gradeval) ) {
$gradershouldcheck = '<span style="font-size-adjust:0.6;font-weight:bold;">'.
' <a target="_new" href="'.$CFG->wwwroot.'/mod/assignment/submissions.php?id='.
$item->idnumber.'&userid='.$userid.'&mode=single&offset='.($this->rowcount - 3).'">(?)</a> </span>';
} else {
$gradershouldcheck = grade_format_gradevalue($gradeval, $item, true, $gradedisplaytype, null);
}
$studentshtml .= '<span class="gradevalue'.$hidden.$gradepass.'">'.$gradershouldcheck.'</span>';
}
It seems that the code changed a little bit for Moodle version 1.9.9
so here is an update, in case you wish to apply it to 1.9.9 version: