prepare for stage 1
[edumed.git] / wtem / templates / wtem / single.html
1 {% extends 'base_super.html' %}
2 {% load compressed %}
3 {% load static %}
4 {% load cache %}
5
6 {% block extra_script %}
7     {% compressed_js 'wtem' %}
8 {% endblock %}
9
10
11 {% block title %}I etap{% endblock %}
12
13
14 {% block body %}
15 <style>
16     .wtem-open-field {
17         margin: 10px 0;
18     }
19     .wtem-open-field textarea {
20         margin-top:0;
21     }
22     .wtem-items-inline li {
23         display: inline-block;
24     }
25     .instruction {
26         font-weight: bold;
27     }
28     .wtem-disclaimer {
29         font-style: italic;
30         font-size: .9em;
31     }
32     form {
33         font-size: 1.2em;
34     }
35 </style>
36
37 {% if messages %}
38     <ul class="messages">
39         {% for message in messages %}
40             <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
41         {% endfor %}
42     </ul>
43 {% endif %}
44
45 <h1>{% include "wtem/title.html" %}</h1>
46
47 <form method="post">
48
49 {% include 'wtem/exercises/exercise_no.html' %}
50 {% cache 300 wtem exercise.id %}
51 {% with 'wtem/exercises/'|add:exercise.type|add:'.html' as template_name %}
52 {% include template_name with exercise=exercise no='' %}
53 {% endwith %}
54 {% endcache %}
55
56
57 <hr/>
58 <input type="hidden" name="answers" value=""/>
59
60 <p style="text-align:center; margin-top:20px;">
61 <input type="submit" value="{% if no < exercise_count %}Kolejne pytanie{% else %}Zakończ test{% endif %}" style="display: block; margin: auto;"/>
62 <br/>
63 <span class="wtem_spinner">
64     <span>Wysyłanie rozwiązania w toku...</span>
65     <img src="{% static 'wtem/spinner.gif' %}"/>
66     <span>Spróbuj jeszcze raz, jeśli wysyłanie trwa dłużej niż kilka chwil.</span>
67 </span>
68 </p>
69
70 </form>
71
72 {% endblock %}
73
74 {% block tracking %}{% endblock %}