fix numbering bug
[edumed.git] / wtem / templates / wtem / exercises / file_upload.html
index df6f64b..a5c3782 100644 (file)
@@ -1,7 +1,9 @@
-<div class="exercise-wtem" data-type="file">
+<div class="exercise-wtem" data-type="file" data-id="{{exercise.id}}">
+
+    {% if no %}
+        {% include "wtem/exercises/exercise_no.html" %}
+    {% endif %}
 
-    <h3>Zadanie {{no}}</h3>
-        
     <div class="description">
         {% for para in exercise.description %}
             <p class="paragraph">
         {% endfor %}
     </div>
 
-    <input type="file" name="attachment_{{exercise.name}}"/>
+    {% if exercise.max_file_size_string %}
+        <p style="font-weight: bold;">Plik nie powinien być większy niż {{exercise.max_file_size_string}}.</p>
+    {% endif %}
+    <div style="margin: 15px auto; width:300px;">
+        <input style="float: left;" type="file" name="attachment_for_{{exercise.id}}"/>
+        <div style="clear:both;"></div>
+    </div>
+    
+
+    {% autoescape off %}
+    {% for para in exercise.description_after %}
+        <p>{{para}}</p>
+    {% endfor %}
+    {% endautoescape %}
 
-</div>
\ No newline at end of file
+</div>