minor fixes
[edumed.git] / wtem / templates / wtem / exercises / edumed_wybor.html
1 <div class="exercise exercise-wtem wybor" data-type="wybor" data-id="{{exercise.id}}">
2
3     {% if no %}
4         {% include "wtem/exercises/exercise_no.html" %}
5     {% endif %}
6
7     {% autoescape off %}
8     <div class="description">
9         {% for para in exercise.description %}
10             <p class="paragraph">
11                 {{para}}
12             </p>
13         {% endfor %}
14         <span class="instruction">
15             Zaznacz każdą prawidłową odpowiedź (jedną lub więcej).
16         </span>
17     </div>
18     {% endautoescape %}
19     <div class="question" data-no="1">
20         <ol class="lista num">
21             {% for option in exercise.options %}
22                 <li class="question-piece" data-name="{{option.id}}">
23                     <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 %}>
24                     <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>
25                 </li>
26             {% endfor %}
27         </ol>
28     </div>
29
30     {% if exercise.open_part %}
31     <div class="open_part">
32         <div class="description">
33             {% for para in exercise.open_part %}
34                 <p class="paragraph">
35                     {{para}}
36                 </p>
37             {% endfor %}
38         </div>
39         <textarea style="width: 100%; margin-top:10px;" rows="{{exercise.open_part_rows|default:10}}">{{ exercise.saved_answer.open_part }}</textarea>
40     </div>
41     {% endif %}
42
43 </div>