7f86a3940fe5047299afa0352d814c8699abd616
[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         <span class="instruction">
13             {% if exercise.answer|length == 1 %}
14                 Tylko jedna odpowiedź jest prawidłowa.
15             {% else %}
16                 Zaznacz wszystkie prawidłowe odpowiedzi.
17             {% endif %}
18         </span>
19     </div>
20     {% endautoescape %}
21
22     <div class="question" data-no="1">
23         <ol class="lista num">
24             {% for option in exercise.options %}
25                 <li class="question-piece" data-name="{{option.id}}">
26                     <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}}">
27                     <label for="{% if exercise.answer|length == 1 %}e{{no}}{% else %}q1_{{option.id}}{% endif %}">{{option.text}}</label>
28                 </li>
29             {% endfor %}
30         </ol>
31     </div>
32
33     {% if exercise.open_part %}
34     <div class="open_part">
35         <div class="description">
36             {% for para in exercise.open_part %}
37                 <p class="paragraph">
38                     {{para}}
39                 </p>
40             {% endfor %}
41         </div>
42         <textarea style="width: 100%; margin-top:10px;" rows="10"></textarea>
43     </div>
44     {% endif %}
45
46 </div>