templates/que_dump.html
author nishanth
Thu, 01 Jul 2010 16:20:17 +0530
changeset 81 848c009b8a60
parent 51 80df28feac72
permissions -rw-r--r--
now topic name is displayed instead of topic number in list_questions page
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
44
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
     1
{% extends 'base.html' %}
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
     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
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
     9
<form action="" method="post">
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
    10
<table cellspacing="5" cellpadding="3">
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
    11
		<tr>
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
    12
				<td>User</td>
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
    13
				<td>Submitted Answer</td>
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
    14
				<td> Is Correct</td>
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
    15
		</tr>
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
    16
	
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
    17
		{% for ans in answers %}
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
    18
		<tr>
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
    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
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
    21
				<td><input name="{{ans.id}}" type="checkbox" {% if ans.is_correct %}checked="yes"{%endif%}></td>
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
    22
		</tr>
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
    23
		{% endfor %}
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
    24
</table><br />
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
    25
		<input type="submit" value="save">
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
    26
</form>
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
    27
{% endblock %}
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
    28