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