Support open part in questions of type 'wybor'
[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     <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     {% if exercise.open_part %}
25     <div class="open_part">
26         <div class="description">
27             {% for para in exercise.open_part %}
28                 <p class="paragraph">
29                     {{para}}
30                 </p>
31             {% endfor %}
32         </div>
33         <textarea style="width: 100%; margin-top:10px;" rows="10"></textarea>
34     </div>
35     {% endif %}
36
37 </div>