Commit abf4175d by Xavier Antoviaque

Fix preservation of previously selected choices for quizz type='choice'

parent cde5657b
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="choices"> <div class="choices">
{% for choice in custom_choices %} {% for choice in custom_choices %}
<span class="choice"> <span class="choice">
<label><input type="radio" name="{{ self.name }}" value="{{ choice.value }}"{% if self.student_choice == '{{ choice.value }}' %} checked{% endif %}> {{ choice.content }}</label> <label><input type="radio" name="{{ self.name }}" value="{{ choice.value }}"{% if self.student_choice == choice.value %} checked{% endif %}> {{ choice.content }}</label>
</span> </span>
{% endfor %} {% endfor %}
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment