33 lines
846 B
HTML
33 lines
846 B
HTML
{% load i18n %}
|
|
{% if previous.answers %}
|
|
|
|
{% if user_was_incorrect %}
|
|
<div class="alert alert-error">
|
|
<strong>{% trans "You answered the above question incorrectly" %}</strong>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<table class="table table-striped table-bordered">
|
|
<tbody>
|
|
{% for answer in previous.answers %}
|
|
{% if answer.correct %}
|
|
<tr class="success">
|
|
<td>{{ answer }}</td>
|
|
<td><strong>{% trans "This is the correct answer" %}</strong></td>
|
|
{% else %}
|
|
<tr>
|
|
<td>{{ answer }}</td>
|
|
<td>
|
|
{% if previous.question_type.MCQuestion %}
|
|
{% if answer.id|add:"0" == previous.previous_answer|add:"0" %}
|
|
{% trans "This was your answer." %}
|
|
{% endif %}
|
|
{% endif %}
|
|
</td>
|
|
{% endif %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endif %}
|