add noscript
[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 <noscript>
38     <ul class="messages">
39         <li class="error">Do poprawnego działania formularza konieczna jest włączona obsługa JavaScriptu</li>
40     </ul>
41 </noscript>
42
43 {% if messages %}
44     <ul class="messages">
45         {% for message in messages %}
46             <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
47         {% endfor %}
48     </ul>
49 {% endif %}
50
51 <h1>{% include "wtem/title.html" %}</h1>
52
53 <form method="post">
54
55 {% include 'wtem/exercises/exercise_no.html' %}
56 {% cache 300 wtem exercise.id %}
57 {% with 'wtem/exercises/'|add:exercise.type|add:'.html' as template_name %}
58 {% include template_name with exercise=exercise no='' %}
59 {% endwith %}
60 {% endcache %}
61
62
63 <hr/>
64 <input type="hidden" name="answers" value=""/>
65
66 <p style="text-align:center; margin-top:20px;">
67 <input type="submit" value="{% if no < exercise_count %}Kolejne pytanie{% else %}Zakończ test{% endif %}" style="display: block; margin: auto;"/>
68 <br/>
69 <span class="wtem_spinner">
70     <span>Wysyłanie rozwiązania w toku...</span>
71     <img src="{% static 'wtem/spinner.gif' %}"/>
72     <span>Spróbuj jeszcze raz, jeśli wysyłanie trwa dłużej niż kilka chwil.</span>
73 </span>
74 </p>
75
76 </form>
77
78 {% endblock %}
79
80 {% block tracking %}{% endblock %}