templates/que_dump.html
author nishanth
Thu, 22 Apr 2010 12:31:29 +0530
changeset 51 80df28feac72
parent 48 aae2f69ba89c
permissions -rw-r--r--
now code submitted by user is displayed in <pre> tags in que_dump and user_dump

{% extends 'base.html' %}
{% block content %}
List of answers submitted for {{quiz_name}}<br />
<br />
{{question.description|linebreaksbr}}<br /><br />
<fieldset><pre>{{question.code}}</pre></fieldset>
<br />
Answers Submitted:<br />
<form action="" method="post">
<table cellspacing="5" cellpadding="3">
		<tr>
				<td>User</td>
				<td>Submitted Answer</td>
				<td> Is Correct</td>
		</tr>
	
		{% for ans in answers %}
		<tr>
				<td>{{ans.quiz.all.0.user.get_full_name}}</td>
				<td><pre>{{ans.submitted_ans}}</pre></td>
				<td><input name="{{ans.id}}" type="checkbox" {% if ans.is_correct %}checked="yes"{%endif%}></td>
		</tr>
		{% endfor %}
</table><br />
		<input type="submit" value="save">
</form>
{% endblock %}