abuse old contest form for exercise view
[edumed.git] / wtem / templates / wtem / exercises / edumed_wybor.html
index a41e177..1d23f33 100644 (file)
@@ -21,7 +21,7 @@
             {% for option in exercise.options %}
                 <li class="question-piece" data-name="{{option.id}}">
                     <input type="checkbox" name="e{{no}}_{{option.id}}" id="e{{no}}_{{option.id}}"{% if option.id|stringformat:"s" in exercise.saved_answer.closed_part %} checked="checked"{% endif %}>
-                    <label for="e{{no}}_{{option.id}}">{# if option.id in exercise.answer %}<strong>{% endif #}{{option.text|safe}}{# if option.id in exercise.answer %}</strong>{% endif #}</label>
+                    <label for="e{{no}}_{{option.id}}">{% if show_answers and option.id in exercise.answer %}<strong>{% endif %}{{option.text|safe}}{% if show_answers and option.id in exercise.answer %}</strong>{% endif %}</label>
                 </li>
             {% endfor %}
         </ol>