Permalink
Browse files

MDL-39568 gradinform_guide: show maxgrade to students when viewing ma…

…rking guide
  • Loading branch information...
1 parent ce3c766 commit b7777142e35b518bb5f6a79b560ea21fc05229a6 @trevor-c trevor-c committed with danmarsden Mar 16, 2014
Showing with 5 additions and 0 deletions.
  1. +5 −0 grade/grading/form/guide/renderer.php
@@ -168,6 +168,11 @@ public function criterion_template($mode, $options, $elementname = '{NAME}', $cr
} else if ($mode == gradingform_guide_controller::DISPLAY_PREVIEW_GRADED ||
$mode == gradingform_guide_controller::DISPLAY_VIEW) {
$title .= $description;
+ if (!empty($options['showmarkspercriterionstudents'])) {
+ $title .= html_writer::tag('label', get_string('maxscore', 'gradingform_guide'),
+ array('for' => '{NAME}[criteria][{CRITERION-id}][maxscore]'));
+ $title .= $maxscore;
+ }
} else {
$title .= $description . $descriptionmarkers;
}

0 comments on commit b777714

Please sign in to comment.