2908f70a7b0d04055e5b66273b6d50c0b9c51159
[edumed.git] / wtem / templates / wtem / exercises / edumed_przyporzadkuj.html
1 <div class="exercise exercise-wtem przyporzadkuj" data-type="przyporzadkuj" data-id="{{exercise.id}}">
2
3     <h3>Zadanie {{no}}</h3>
4     
5     <div class="question" data-no="1">
6
7         <div class="description">
8         {% for para in exercise.description %}
9             <p class="paragraph">
10                 {{para}}
11             </p>
12
13         {% endfor %}
14             {% if not exercise.hide_default_instruction %}
15                 <span class="instruction">Przeciągnij odpowiedzi i upuść w wybranym polu.</span>
16             {% endif %}
17         </div>
18
19         <p class="paragraph">{{exercise.buckets_name|default:"kategorie"|capfirst}}:</p>
20
21         <ul class="lista punkt predicate" data-name="kategorie">
22             {% for bucket in exercise.buckets %}
23                 <li data-predicate="{{bucket.id}}">
24                     {{bucket.title}}
25                     <ul class="subjects">
26                         <li class="placeholder multiple ui-droppable accepting"></li>
27                     </ul>
28                 </li>
29             {% endfor %}
30         </ul>
31         <br class="clr">
32
33         <div class="description" style="margin-bottom:10px;">
34             <p class="paragraph">{{exercise.items_name|capfirst}}:</p>
35             {% if exercise.items_instruction %}
36                 <span class="instruction">{{exercise.items_instruction}}</span>
37             {% endif %}
38         </div>
39          
40         <ul class="lista punkt subject {% if exercise.items_inline %}wtem-items-inline{% endif %}" data-target="kategorie">
41             {% for item in exercise.items %}
42                 {% comment %}
43                 data-solution set to single bogus value only to indicate that this piece has no multiple solutions, not used otherwise (see: is_multiple in edumed.coffee). 
44                 {% endcomment %}
45                 
46                 {% if item.img %}
47                     <li style="magin-bottom:5px;">
48                         <span data-solution="1" data-no="{{forloop.counter}}" data-id="{{item.id}}" class="question-piece draggable ui-draggable">{{item.text}}</span>
49                         
50                         {% if item.href %}
51                             <a href="{% if not item.href_absolute %}/static/wtem/img/{% endif %}{{item.href}}" target="wtem_aside">
52                         {% endif %}
53                         
54                         <img src="/static/wtem/img/{{item.img}}"/>
55                         
56                         {% if item.href %}</a>{% endif %}
57                     </li>
58                 {% else %}
59                     <li data-solution="1" data-no="{{forloop.counter}}" data-id="{{item.id}}" class="question-piece draggable ui-draggable">{{item.text}}</li>
60                 {% endif %}
61             
62             {% endfor %}
63         </ul>
64
65         <br class="clr">
66
67         {% if exercise.description_after %}
68             {% autoescape off %}
69             {% for para in exercise.description_after %}
70                 <p class="paragraph">
71                     {{para}}
72                 </p>
73             {% endfor %}
74             {% endautoescape %}
75         {% endif %}
76
77     </div>
78
79 </div>
80