Skip to content

Commit

Permalink
MDL-39568 gradinform_guide: show maxgrade to students when viewing ma…
Browse files Browse the repository at this point in the history
…rking guide
  • Loading branch information
trevor-c authored and danmarsden committed Mar 16, 2014
1 parent 0a48977 commit 9c35f55
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions grade/grading/form/guide/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9c35f55

Please sign in to comment.