3fdb80a5ba2b01df4653d6081e3733efe6b9c75e
[edumed.git] / wtem / templates / wtem / exercises / edumed_wybor.html
1 <div class="exercise exercise-wtem wybor" data-type="wybor">
2
3     <h3>Zadanie {{no}}</h3>
4
5     <div class="description">
6         {% for para in exercise.description %}
7             <p class="paragraph">
8                 {{para}}
9             </p>
10         {% endfor %}
11     </div>
12
13     <div class="question" data-no="1">
14         <ol class="lista num">
15             {% for option in exercise.options %}
16                 <li class="question-piece" data-name="{{option.id}}">
17                     <input type="{% if exercise.answer|length == 1 %}radio{% else %}checkbox{% endif %}" name="{% if exercise.answer|length == 1 %}e{{no}}{% else %}q1_{{option.id}}{% endif %}" id="q1_{{option.id}}">
18                     <label for="{% if exercise.answer|length == 1 %}e{{no}}{% else %}q1_{{option.id}}{% endif %}">{{option.text}}</label>
19                 </li>
20             {% endfor %}
21         </ol>
22     </div>
23
24 </div>