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