zmiana w menu na katalog.edukacjamedialna
[edumed.git] / wtem / templates / wtem-wtem / exercises / open.html
1 <div class="exercise-wtem" data-type="open" data-id="{{exercise.id}}">
2
3     <h3>Zadanie {{no}}</h3>
4         
5     <div class="description">
6         {% autoescape off %}
7         {% for para in exercise.description %}
8             <p class="paragraph">
9                 {{para}}
10             </p>
11         {% endfor %}
12         {% endautoescape %}
13     </div>
14
15     {% if exercise.fields %}
16         {% for field in exercise.fields %}
17             <div class="wtem-open-field">
18                 <label class="wtem-caption">{{field.caption}} <span class="label_suffix"></span></label>
19                 <textarea style="width: 100%;" rows="{{field.rows|default:10}}" data-field-id="{{field.id}}" {% if field.max_length %}maxlength="{{field.max_length}}"{% endif %} {% if field.input_id %}id="{{field.input_id}}"{% endif %}></textarea>
20             </div>
21         {% endfor %}
22     {% else %}
23         <textarea style="width: 100%; margin-top:10px;" rows="{{field.rows|default:10}}" {% if field.max_length %}maxlength="{{field.max_length}}"{% endif %} {% if field.input_id %}id="#{{field.input_id}}"{% endif %}></textarea>
24     {% endif %}
25
26     {% if exercise.description_after %}
27         <div class="description">
28             {% autoescape off %}
29             {% for para in exercise.description_after %}
30                 <p class="paragraph">
31                     {{para}}
32                 </p>
33             {% endfor %}
34             {% endautoescape %}
35         </div>
36     {% endif%}
37
38 </div>