blob: 2994ee268df52583fa5d16a1b028907bba5eec8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
{% 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 #}
<a href="{{URL_ROOT}}/admin/">Admin</a>
{% endblock content %}
|