diff options
author | Prabhu Ramachandran | 2011-11-25 00:57:41 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2011-11-25 00:57:41 +0530 |
commit | 3375839bfc531329adc45994659be382295038b6 (patch) | |
tree | 987582097b8bc5e96d27f86874e1e3b47bfc823d /templates/exam/grade_user.html | |
parent | 92cdea62ed993acd8a6c3c2798c6b89143c3cfb5 (diff) | |
download | online_test-3375839bfc531329adc45994659be382295038b6.tar.gz online_test-3375839bfc531329adc45994659be382295038b6.tar.bz2 online_test-3375839bfc531329adc45994659be382295038b6.zip |
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.
Diffstat (limited to 'templates/exam/grade_user.html')
-rw-r--r-- | templates/exam/grade_user.html | 62 |
1 files changed, 62 insertions, 0 deletions
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 %} + +<h1> Grading papers for {{ data.user.get_full_name.title }} </h1> + +<p> +Name: {{ data.user.get_full_name.title }} +{% if data.profile %} +(roll number: {{ data.profile.roll_number }}) <br/> +{{ data.profile.position }}, +{{ data.profile.department }}, +{{ data.profile.institute }} +{% endif %} +</p> + +{% if data.papers %} + +{% for paper in data.papers %} + +<h2> Quiz: {{ paper.quiz.description }} </h2> + +<p> +Questions correctly answered: {{ paper.get_answered_str }} <br/> +Total attempts at questions: {{ paper.answers.count }} <br/> +Marks obtained: {{ paper.get_total_marks }} <br/> +Start time: {{ paper.start_time }} <br/> +</p> + +{% if paper.answers.count %} +<h3> Answers </h3> +<form id="q{{ paper.quiz.id }}_form" + action="{{URL_ROOT}}/exam/grade_user/{{data.user.username}}/" method="post"> +{% csrf_token %} +{% for question, answers in paper.get_question_answers.items %} +<p><strong> Question: {{ question.id }}. {{ question.summary }} (Points: {{ question.points }})</strong> </p> +{% for answer in answers %} +<pre> +################################################################################ +{{ answer.answer|safe }} +# Autocheck: {{ answer.error }} +</pre> +Marks: <input id="q{{ question.id }}" type="text" + name="q{{ question.id }}_marks" size="4" + value="{{ answer.marks }}" /> +{% endfor %} {# for answer in answers #} +{% endfor %} {# for question, answers ... #} +<h3>Teacher comments: </h3> +<textarea id="comments_{{paper.quiz.id}}" rows="10" cols="80" + name="comments_{{ paper.quiz.id }}">{{ paper.comments }}</textarea> +<br/> +<input type="submit" name="submit_{{paper.quiz.id}}" value="Save marks" /> +</form> +{% endif %} {# if paper.answers.count #} + +{% endfor %} {# for paper in data.papers #} + +{% endif %} {# if data.papers #} + +{% endblock content %} |