From 3375839bfc531329adc45994659be382295038b6 Mon Sep 17 00:00:00 2001 From: Prabhu Ramachandran Date: Fri, 25 Nov 2011 00:57:41 +0530 Subject: ENH: Adding a convenient grading interface. With this, you can grade a student's answer paper and give comments for each quiz paper they attempt. Also added a link to this grading interface to the user_data view. --- templates/exam/grade_user.html | 62 ++++++++++++++++++++++++++++++++++++++++++ templates/exam/user_data.html | 6 ++++ 2 files changed, 68 insertions(+) create mode 100644 templates/exam/grade_user.html (limited to 'templates') diff --git a/templates/exam/grade_user.html b/templates/exam/grade_user.html new file mode 100644 index 0000000..f671237 --- /dev/null +++ b/templates/exam/grade_user.html @@ -0,0 +1,62 @@ +{% extends "base.html" %} + +{% block title %} Grading papers for {{ data.user.get_full_name.title }} {% endblock title %} + +{% block content %} + +

Grading papers for {{ data.user.get_full_name.title }}

+ +

+Name: {{ data.user.get_full_name.title }} +{% if data.profile %} +(roll number: {{ data.profile.roll_number }})
+{{ data.profile.position }}, +{{ data.profile.department }}, +{{ data.profile.institute }} +{% endif %} +

+ +{% if data.papers %} + +{% for paper in data.papers %} + +

Quiz: {{ paper.quiz.description }}

+ +

+Questions correctly answered: {{ paper.get_answered_str }}
+Total attempts at questions: {{ paper.answers.count }}
+Marks obtained: {{ paper.get_total_marks }}
+Start time: {{ paper.start_time }}
+

+ +{% if paper.answers.count %} +

Answers

+
+{% csrf_token %} +{% for question, answers in paper.get_question_answers.items %} +

Question: {{ question.id }}. {{ question.summary }} (Points: {{ question.points }})

+{% for answer in answers %} +
 
+################################################################################
+{{ answer.answer|safe }}
+# Autocheck: {{ answer.error }}
+
+Marks: +{% endfor %} {# for answer in answers #} +{% endfor %} {# for question, answers ... #} +

Teacher comments:

+ +
+ +
+{% endif %} {# if paper.answers.count #} + +{% endfor %} {# for paper in data.papers #} + +{% endif %} {# if data.papers #} + +{% endblock content %} diff --git a/templates/exam/user_data.html b/templates/exam/user_data.html index 7563e0e..1e2c392 100644 --- a/templates/exam/user_data.html +++ b/templates/exam/user_data.html @@ -21,6 +21,8 @@ Last login: {{ data.user.last_login }}

{% if data.papers %} + + Grade/correct paper {% for paper in data.papers %} @@ -54,5 +56,9 @@ User IP address: {{ paper.user_ip }} {% endfor %} {# for paper in data.papers #} {% endif %} {# if data.papers #} +
+
+ + Grade/correct paper {% endblock content %} -- cgit