2ac1e2c9488579a15d10b31331a649d45b9e83bf
[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     {% include "wtem/exercises/exercise_no.html" %}
4     {% autoescape off %}
5     <div class="description">
6         {% for para in exercise.description %}
7             <p class="paragraph">
8                 {{para}}
9             </p>
10         {% endfor %}
11         <span class="instruction">
12             Zaznacz każdą prawidłową odpowiedź (jedną lub więcej).
13         </span>
14     </div>
15     {% endautoescape %}
16     <div class="question" data-no="1">
17         <ol class="lista num">
18             {% for option in exercise.options %}
19                 <li class="question-piece" data-name="{{option.id}}">
20                     <input type="checkbox" name="e{{no}}_{{option.id}}" id="e{{no}}_{{option.id}}"{% if option.id|stringformat:"s" in exercise.saved_answer.closed_part %} checked="checked"{% endif %}>
21                     <label for="e{{no}}_{{option.id}}">{{option.text}}</label>
22                 </li>
23             {% endfor %}
24         </ol>
25     </div>
26
27     {% if exercise.open_part %}
28     <div class="open_part">
29         <div class="description">
30             {% for para in exercise.open_part %}
31                 <p class="paragraph">
32                     {{para}}
33                 </p>
34             {% endfor %}
35         </div>
36         <textarea style="width: 100%; margin-top:10px;" rows="{{exercise.open_part_rows|default:10}}">{{ exercise.saved_answer.open_part }}</textarea>
37     </div>
38     {% endif %}
39
40 </div>