new test and workshop form
[edumed.git] / edumed / templates / contact / collegium-mlodych-test / results.html
diff --git a/edumed/templates/contact/collegium-mlodych-test/results.html b/edumed/templates/contact/collegium-mlodych-test/results.html
new file mode 100644 (file)
index 0000000..8e0164f
--- /dev/null
@@ -0,0 +1,31 @@
+{% extends base_template|default:"base.html" %}
+{% load i18n %}
+
+{% block title %}Wyniki{% endblock %}
+
+{% block body %}
+    {% include 'sciezki_logos.html' %}
+    <h1>Wyniki</h1>
+
+    <p>Suma uzyskanych punktów: {{ results.points|floatformat }} na {{ results.total }} możliwych.</p>
+
+    {#<p class="box-button" style="max-width: 20em;"><a href="{% url 'contact_form' 'sciezki-kopernika' %}" class="nice-button">Zgłoś się na warsztaty</a></p>#}
+
+    {% for question in results.questions %}
+        <strong>{{ question.label }}</strong>
+        <ol class="alpha">
+            {% for answer, chosen, correct in question.answers %}
+                <li style="{% if chosen %}font-weight: bold;{% endif %}{% if correct %}color: #00cc44;{% endif %}">{{ answer }}</li>
+            {% endfor %}
+        </ol>
+        <p><strong>Komentarze do odpowiedzi:</strong></p>
+        {% for answer in question.answer_data %}
+            <p><strong>{{ answer.letter }}</strong>:</p>
+            {{ answer.comment }}
+        {% endfor %}
+    {% endfor %}
+    {#<p class="box-button" style="max-width: 20em;"><a href="{% url 'contact_form' 'sciezki-kopernika' %}" class="nice-button">Zgłoś się na warsztaty</a></p>#}
+    <p>Pytania stworzyli: Grzegorz Stunża, Marcin Wilkowski.</p>
+    <p>Komentarzami opatrzyli: Paulina Piasecka, Paweł Maranowski.</p>
+
+{% endblock %}
\ No newline at end of file