Sending exercise ids when submitting the contest form
[edumed.git] / wtem / templates / wtem / exercises / file_upload.html
index e4be9a1..e74e373 100644 (file)
@@ -1,4 +1,4 @@
-<div class="exercise-wtem" data-type="file">
+<div class="exercise-wtem" data-type="file" data-id="{{exercise.id}}">
 
     <h3>Zadanie {{no}}</h3>
         
@@ -10,6 +10,6 @@
         {% endfor %}
     </div>
 
-    <input type="file"/>
+    <input type="file" name="attachment_{{exercise.name}}"/>
 
 </div>
\ No newline at end of file