author | nishanth |
Thu, 22 Apr 2010 12:31:29 +0530 | |
changeset 51 | 80df28feac72 |
parent 48 | aae2f69ba89c |
permissions | -rw-r--r-- |
44 | 1 |
{% extends 'base.html' %} |
2 |
{% block content %} |
|
48
aae2f69ba89c
updated the que_dump template to show the question properly.
nishanth
parents:
44
diff
changeset
|
3 |
List of answers submitted for {{quiz_name}}<br /> |
aae2f69ba89c
updated the que_dump template to show the question properly.
nishanth
parents:
44
diff
changeset
|
4 |
<br /> |
aae2f69ba89c
updated the que_dump template to show the question properly.
nishanth
parents:
44
diff
changeset
|
5 |
{{question.description|linebreaksbr}}<br /><br /> |
aae2f69ba89c
updated the que_dump template to show the question properly.
nishanth
parents:
44
diff
changeset
|
6 |
<fieldset><pre>{{question.code}}</pre></fieldset> |
aae2f69ba89c
updated the que_dump template to show the question properly.
nishanth
parents:
44
diff
changeset
|
7 |
<br /> |
aae2f69ba89c
updated the que_dump template to show the question properly.
nishanth
parents:
44
diff
changeset
|
8 |
Answers Submitted:<br /> |
44 | 9 |
<form action="" method="post"> |
10 |
<table cellspacing="5" cellpadding="3"> |
|
11 |
<tr> |
|
12 |
<td>User</td> |
|
13 |
<td>Submitted Answer</td> |
|
14 |
<td> Is Correct</td> |
|
15 |
</tr> |
|
16 |
||
17 |
{% for ans in answers %} |
|
18 |
<tr> |
|
19 |
<td>{{ans.quiz.all.0.user.get_full_name}}</td> |
|
51
80df28feac72
now code submitted by user is displayed in <pre> tags in que_dump and user_dump
nishanth
parents:
48
diff
changeset
|
20 |
<td><pre>{{ans.submitted_ans}}</pre></td> |
44 | 21 |
<td><input name="{{ans.id}}" type="checkbox" {% if ans.is_correct %}checked="yes"{%endif%}></td> |
22 |
</tr> |
|
23 |
{% endfor %} |
|
24 |
</table><br /> |
|
25 |
<input type="submit" value="save"> |
|
26 |
</form> |
|
27 |
{% endblock %} |
|
28 |