ae1419d6d16d795774a5133e97c5988927038d6c
[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     {% autoescape off %}
6     <div class="description">
7         {% for para in exercise.description %}
8             <p class="paragraph">
9                 {{para}}
10             </p>
11         {% endfor %}
12     </div>
13     {% endautoescape %}
14
15     <div class="question" data-no="1">
16         <ol class="lista num">
17             {% for option in exercise.options %}
18                 <li class="question-piece" data-name="{{option.id}}">
19                     <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}}">
20                     <label for="{% if exercise.answer|length == 1 %}e{{no}}{% else %}q1_{{option.id}}{% endif %}">{{option.text}}</label>
21                 </li>
22             {% endfor %}
23         </ol>
24     </div>
25
26     {% if exercise.open_part %}
27     <div class="open_part">
28         <div class="description">
29             {% for para in exercise.open_part %}
30                 <p class="paragraph">
31                     {{para}}
32                 </p>
33             {% endfor %}
34         </div>
35         <textarea style="width: 100%; margin-top:10px;" rows="10"></textarea>
36     </div>
37     {% endif %}
38
39 </div>