Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a131e9a7b6
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (38 sloc) 1.515 kb
{% extends "quiz_base.html" %}
{% block quiz_content %}
<div class="row">
<div class="span11">
<form method="post" action="{{ action }}" class="form-stacked">
<ol class="questions">
{% for question in questions %}
<li class="question">
<h3>{{ question.prompt }}</h3>
<ul class="answers">
{% for choice in question.choices %}
<li>
{{ choice }}
{% ifequal forloop.counter responses|resolve:question.id %}
{% ifequal forloop.counter question.correct %}
<span class="label success">Correct</span>
{% else %}
<span class="label important">Incorrect</span>
{% endifequal %}
{% endifequal %}
</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ol>
</form>
</div>
<div class="span5">
<h1>{{ attempt.percentage }}%</h1>
{% if quiz_snapshot.prompt %}
<div class="alert-message block-message info">
{{ quiz_snapshot.prompt }}
</div>
{% endif %}
</div>
</div>
{% endblock %}
Jump to Line
Something went wrong with that request. Please try again.