Commit 487e46e
committed
Improvements for the problem renderer on the problem grader page.
First, this makes it so that feedback is shown on initial render. This
occurs both on initial page load (for the initially selected user), and
also occurs when a different user is selected from the dropdown.
Second, this fixes some issues with tests and answers. The test answer
prefix needs to be preserved in the form so that checking answers works.
Also, the `ProblemGrader.html.ep` template was constructing the quiz
prefix from the problem number and should be using the `problem_id`
(which is what the GatewayQuiz.pm module uses). That means the last
answers were not working at all for tests with random problem order.1 parent 2368f3e commit 487e46e
File tree
3 files changed
+6
-2
lines changed- htdocs/js/ProblemGrader
- templates
- ContentGenerator/Instructor
- RPCRenderFormats
3 files changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
105 | 108 | | |
106 | 109 | | |
107 | 110 | | |
| |||
0 commit comments