templates/user_dump.html
author nishanth
Thu, 22 Apr 2010 12:31:29 +0530
changeset 51 80df28feac72
parent 44 ffc035725a4e
permissions -rw-r--r--
now code submitted by user is displayed in <pre> tags in que_dump and user_dump
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 %}
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
     3
List of answers submitted by {{quiz.user.get_full_name}} for {{quiz_name}} of {{event.title}}<br />
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
     4
<form action="" method="post">
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
     5
<table cellspacing="5" cellpadding="3">
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
     6
		<tr>
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
     7
				<td>Question</td>
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
     8
				<td>Submitted Answer</td>
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
     9
				<td> Is Correct</td>
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
    10
		</tr>
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
    11
	
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
    12
		{% for ans in quiz.que_answered.all %}
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
    13
		<tr>
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
    14
				<td><a href="/quiz/que_dump/{{admin_key}}/{{ans.question.id}}">{{ans.question.description|slice:":50"}}</a></td>
51
80df28feac72 now code submitted by user is displayed in <pre> tags in que_dump and user_dump
nishanth
parents: 44
diff changeset
    15
				<td><pre>{{ans.submitted_ans}}</pre></td>
44
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
    16
				<td><input name="{{ans.question.id}}" type="checkbox" {% if ans.is_correct %}checked="yes"{%endif%}></td>
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
    17
		</tr>
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
    18
		{% endfor %}
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
    19
</table><br />
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
    20
		<input type="submit" value="save">
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
    21
</form>
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
    22
{% endblock %}
ffc035725a4e created que_dump page
nishanth
parents:
diff changeset
    23