Handle splitting field into parts in open questions
[edumed.git] / wtem / templates / wtem / main.html
1 {% extends 'base_super.html' %}
2 {% load compressed %}
3
4 {% block extra_script %}
5     {% compressed_js 'wtem' %}
6 {% endblock %}
7
8
9
10 {% block body %}
11 <style>
12     .wtem-open-field {
13         margin: 10px 0;
14     }
15     .wtem-open-field textarea {
16         margin-top:0;
17     }
18 </style>
19 <form method="post" enctype="multipart/form-data">
20 {% csrf_token %}
21
22 {% for exercise in exercises %}
23     {% with 'wtem/exercises/'|add:exercise.type|add:'.html' as template_name %}
24     {% include  template_name with exercise=exercise no=forloop.counter %}
25     {% endwith %}
26 {% endfor %}
27
28
29 <hr/>
30 <input type="hidden" name="answers" value=""/>
31 <button style="display: block; margin: auto;" id="submit_answers">Wyƛlij moje odpowiedzi</button>
32
33 </form>
34
35 {% endblock %}