various fixes and updates
[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 {% cache 300 wtem exercise.id %}
44 {% with 'wtem/exercises/'|add:exercise.type|add:'.html' as template_name %}
45 {% include  template_name with exercise=exercise %}
46 {% endwith %}
47 {% endcache %}
48
49
50 <hr/>
51 <input type="hidden" name="answers" value=""/>
52
53 <p style="text-align:center; margin-top:20px;">
54 <input type="submit" value="{% if no < exercise_count %}Kolejne pytanie{% else %}Zakończ test{% endif %}" style="display: block; margin: auto;"/>
55 <br/>
56 <span class="wtem_spinner">
57     <span>Wysyłanie rozwiązania w toku...</span>
58     <img src="{% static 'wtem/spinner.gif' %}"/>
59     <span>Spróbuj jeszcze raz, jeśli wysyłanie trwa dłużej niż kilka chwil.</span>
60 </span>
61 </p>
62
63 </form>
64
65 {% endblock %}
66
67 {% block tracking %}{% endblock %}