diff --git a/templates/HTML/SingleProblemGrader/grader.html.ep b/templates/HTML/SingleProblemGrader/grader.html.ep index bf5907a3e2..4a3282bea0 100644 --- a/templates/HTML/SingleProblemGrader/grader.html.ep +++ b/templates/HTML/SingleProblemGrader/grader.html.ep @@ -80,6 +80,11 @@ % } else { % $stepSize = int(($grader->{problem_value} - 1) / 100) + 1; % } + % # Round point score to the nearest $stepSize. + % param( + % 'grader-problem-points', + % wwRound(2, wwRound(0, $grader->{recorded_score} * $grader->{problem_value} / $stepSize) * $stepSize) + % );
<%= label_for "score_problem$grader->{problem_id}_points", class => 'col-fixed col-form-label', @@ -112,7 +117,6 @@ <% end =%> <% end =%>
- % param('grader-problem-points', wwRound(1, $grader->{recorded_score} * $grader->{problem_value})); <%= number_field 'grader-problem-points' => '', min => 0, max => $grader->{problem_value},