fnp
/
edumed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wip: saving submission with file attachments
[edumed.git]
/
wtem
/
templates
/
wtem
/
main.html
diff --git
a/wtem/templates/wtem/main.html
b/wtem/templates/wtem/main.html
index
4536cfb
..
b3360b9
100644
(file)
--- a/
wtem/templates/wtem/main.html
+++ b/
wtem/templates/wtem/main.html
@@
-9,7
+9,8
@@
{% block body %}
{% block body %}
-<form>
+<form method="post" enctype="multipart/form-data">
+{% csrf_token %}
{% for exercise in exercises %}
{% with 'wtem/exercises/'|add:exercise.type|add:'.html' as template_name %}
{% for exercise in exercises %}
{% with 'wtem/exercises/'|add:exercise.type|add:'.html' as template_name %}
@@
-19,7
+20,7
@@
<hr/>
<hr/>
-<input type="hidden" name="
wtem_
answers" value=""/>
+<input type="hidden" name="answers" value=""/>
<button style="display: block; margin: auto;" id="submit_answers">Wyślij moje odpowiedzi</button>
</form>
<button style="display: block; margin: auto;" id="submit_answers">Wyślij moje odpowiedzi</button>
</form>