MDL-39568 gradinform_guide: show maxgrade to students when viewing marking guide

This commit is contained in:
Trevor Cunningham
2014-03-17 09:03:26 +13:00
committed by Dan Marsden
parent ef0ee34df0
commit 33c621255d
+5
View File
@@ -168,6 +168,11 @@ class gradingform_guide_renderer extends plugin_renderer_base {
} 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;
}