Skip to content

Commit

Permalink
qpool_home: Differentiate between free text questions and single/mult…
Browse files Browse the repository at this point in the history
…iple choices questions
  • Loading branch information
givascu committed Oct 14, 2016
1 parent 41a7d80 commit 2a6ac58
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions wouso/resources/templates/cpanel/qpool_home.html
Expand Up @@ -131,9 +131,13 @@
<div class="text-left">
<span class="question_preview" onclick="$('#qc_{{q.id}}').toggle();" title="Click for answers">{{ q|safe }}</span>
<div id="qc_{{ q.id }}" class="collapse">
{% for a in q.answers %}
{% if a.correct %}+{% else %}-{% endif %}{{ a|safe }}<br/>
{% endfor %}
{% if q.answer_type == 'F' %}
<em>This question has a free text answer.</em>
{% else %}
{% for a in q.answers %}
{% if a.correct %}+{% else %}-{% endif %}{{ a|safe }}<br/>
{% endfor %}
{% endif %}
</div>
</div>
<span class="points">{% if not q.is_valid %}<span class="wrong">Invalid</span>{% endif %}</span>
Expand Down

0 comments on commit 2a6ac58

Please sign in to comment.