wip: file upload exercise
[edumed.git] / wtem / templates / wtem / main.html
index 22f919d..e7ce29a 100644 (file)
@@ -1 +1,26 @@
 {% extends 'base_super.html' %}
+{% load compressed %}
+
+{% block extra_script %}
+    {% compressed_js 'wtem' %}
+{% endblock %}
+
+
+
+{% block body %}
+
+<form>
+
+{% for exercise in exercises %}
+    {% with 'wtem/exercises/'|add:exercise.type|add:'.html' as template_name %}
+    {% include  template_name with exercise=exercise no=forloop.counter %}
+    {% endwith %}
+{% endfor %}
+
+
+<hr/>
+<button style="display: block; margin: auto;" id="submit_answers">Wyƛlij moje odpowiedzi</button>
+
+</form>
+
+{% endblock %}
\ No newline at end of file