Description field as a list
[edumed.git] / wtem / templates / wtem / exercises / edumed_przyporzadkuj.html
1 <div class="exercise przyporzadkuj" data-type="przyporzadkuj">
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         {% endfor %}
13         </div>
14
15         <p class="paragraph">{{exercise.buckets_name|default:"kategorie"|capfirst}}:</p>
16
17         <ul class="lista punkt predicate" data-name="kategorie">
18             {% for bucket in exercise.buckets %}
19                 <li data-predicate="{{bucket.id}}">
20                     {{bucket.title}}
21                     <ul class="subjects">
22                         <li class="placeholder multiple ui-droppable accepting"></li>
23                     </ul>
24                 </li>
25             {% endfor %}
26         </ul>
27         <br class="clr">
28
29         <div class="description">
30             <p class="paragraph">{{exercise.items_name|capfirst}}:</p>
31         </div>
32          
33         <ul class="lista punkt subject" data-target="kategorie">
34             {% for item in exercise.items %}
35                 <!-- 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). -->
36                 <li data-solution="1" data-no="{{forloop.counter}}" data-id="{{item.id}}" class="question-piece draggable ui-draggable">{{item.text}}</li>
37             {% endfor %}
38         </ul>
39
40         <br class="clr">
41
42     </div>
43
44 </div>
45