question of type 'przyporzadkuj' with images
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Thu, 7 Nov 2013 13:38:47 +0000 (14:38 +0100)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Wed, 15 Jan 2014 10:18:56 +0000 (11:18 +0100)
wtem/static/wtem/img/AdWords.png [new file with mode: 0644]
wtem/static/wtem/img/lokowanie_produktu.png [new file with mode: 0644]
wtem/static/wtem/img/power_content.png [new file with mode: 0644]
wtem/templates/wtem/exercises/edumed_przyporzadkuj.html

diff --git a/wtem/static/wtem/img/AdWords.png b/wtem/static/wtem/img/AdWords.png
new file mode 100644 (file)
index 0000000..48e5969
Binary files /dev/null and b/wtem/static/wtem/img/AdWords.png differ
diff --git a/wtem/static/wtem/img/lokowanie_produktu.png b/wtem/static/wtem/img/lokowanie_produktu.png
new file mode 100644 (file)
index 0000000..7256587
Binary files /dev/null and b/wtem/static/wtem/img/lokowanie_produktu.png differ
diff --git a/wtem/static/wtem/img/power_content.png b/wtem/static/wtem/img/power_content.png
new file mode 100644 (file)
index 0000000..0d027d5
Binary files /dev/null and b/wtem/static/wtem/img/power_content.png differ
index 3fb9517..268724c 100644 (file)
         </ul>
         <br class="clr">
 
         </ul>
         <br class="clr">
 
-        <div class="description">
+        <div class="description" style="margin-bottom:10px;">
             <p class="paragraph">{{exercise.items_name|capfirst}}:</p>
         </div>
          
         <ul class="lista punkt subject" data-target="kategorie">
             {% for item in exercise.items %}
                 <!-- 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). -->
             <p class="paragraph">{{exercise.items_name|capfirst}}:</p>
         </div>
          
         <ul class="lista punkt subject" data-target="kategorie">
             {% for item in exercise.items %}
                 <!-- 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). -->
-                <li data-solution="1" data-no="{{forloop.counter}}" data-id="{{item.id}}" class="question-piece draggable ui-draggable">{{item.text}}</li>
+                
+                {% if item.href %}
+                    <li style="magin-bottom:5px;">
+                        <span data-solution="1" data-no="{{forloop.counter}}" data-id="{{item.id}}" class="question-piece draggable ui-draggable">{{item.text}}</span>
+                        <img src="/static/wtem/img/{{item.href}}"/>
+                    </li>
+                {% else %}
+                    <li data-solution="1" data-no="{{forloop.counter}}" data-id="{{item.id}}" class="question-piece draggable ui-draggable">{{item.text}}</li>
+                {% endif %}
+            
             {% endfor %}
         </ul>
 
             {% endfor %}
         </ul>