diff options
Diffstat (limited to 'testapp/templates/exam')
-rw-r--r-- | testapp/templates/exam/grade_user.html | 4 | ||||
-rw-r--r-- | testapp/templates/exam/monitor.html | 4 | ||||
-rw-r--r-- | testapp/templates/exam/showusers.html | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/testapp/templates/exam/grade_user.html b/testapp/templates/exam/grade_user.html index 7137548..58e118b 100644 --- a/testapp/templates/exam/grade_user.html +++ b/testapp/templates/exam/grade_user.html @@ -92,8 +92,8 @@ Marks: <input id="q{{ question.id }}" type="text" <h3>Teacher comments: </h3> -<textarea id="comments_{{paper.quiz.id}}" rows="10" cols="80" - name="comments_{{ paper.quiz.id }}">{{ paper.comments }}</textarea> +<textarea id="comments_{{paper.question_paper.id}}" rows="10" cols="80" + name="comments_{{ paper.question_paper.id }}">{{ paper.comments }}</textarea> <br> <br><button class="btn" type="submit" name="submit_{{paper.quiz.id}}">Save Marks</button> diff --git a/testapp/templates/exam/monitor.html b/testapp/templates/exam/monitor.html index 29cb6e9..aa8b678 100644 --- a/testapp/templates/exam/monitor.html +++ b/testapp/templates/exam/monitor.html @@ -27,8 +27,8 @@ {# This is rendered when we are just viewing exam/monitor #} {% if quizzes %} <ul> -{% for quiz in quizzes %} -<li><a href="{{URL_ROOT}}/exam/manage/monitor/{{quiz.id}}/">{{ quiz.description }}</a></li> +{% for q in quizzes %} +<li><a href="{{URL_ROOT}}/exam/manage/monitor/{{q.id}}/">{{ q.quiz.description }}</a></li> {% endfor %} </ul> {% endif %} diff --git a/testapp/templates/exam/showusers.html b/testapp/templates/exam/showusers.html index 603af8a..01ecc37 100644 --- a/testapp/templates/exam/showusers.html +++ b/testapp/templates/exam/showusers.html @@ -20,7 +20,7 @@ List of Users <tr><td><a href="{{URL_ROOT}}/exam/manage/gradeuser/{{ papers.user.username }}">{{ papers.user.username }}</a><br> <td >{{ papers.user.first_name.title }} <td>{{ papers.user.last_name.title }} - <td>{{ papers.quiz.description }} + <td>{{ papers.question_paper.quiz.description }} {% endfor %} </table></center> {% endblock %} |