MDL-42818 assign: Add grading UI indicator about followup submission

This commit is contained in:
Zig Tan
2018-06-19 14:06:17 +08:00
parent 9e7c397889
commit fcb7d2a976
4 changed files with 45 additions and 1 deletions
+5 -1
View File
@@ -1083,7 +1083,11 @@ class assign_grading_table extends table_sql implements renderable {
// Add status of "grading" if markflow is not enabled.
if (!$instance->markingworkflow) {
if ($row->grade !== null && $row->grade >= 0) {
$o .= $this->output->container(get_string('graded', 'assign'), 'submissiongraded');
if ($row->timemarked < $row->timesubmitted) {
$o .= $this->output->container(get_string('gradedfollowupsubmit', 'assign'), 'gradingreminder');
} else {
$o .= $this->output->container(get_string('graded', 'assign'), 'submissiongraded');
}
} else if (!$timesubmitted || $status == ASSIGN_SUBMISSION_STATUS_NEW) {
$now = time();
if ($due && ($now > $due)) {