answer counts and other minor improvements
[edumed.git] / stage2 / templates / stage2 / participant.html
1 {% extends 'base.html' %}
2 {% load textile_pl from fnp_markup %}
3 {% load chunks %}
4
5 {% block title %}Drugi etap{% endblock %}
6
7 {% block body %}
8   <h1>Drugi etap Olimpiady Cyfrowej</h1>
9
10   {% chunk 'stage2_header' %}
11
12   {% for assignment in assignments %}
13     <h2>{{ assignment.title }} (do {{ assignment.deadline }})</h2>
14     {% if assignment.is_active %}
15       <p>{{ assignment.content|textile_pl }}</p>
16     {% endif %}
17     <form method="POST" action="{% url 'stage2_upload' assignment.id participant.id participant.key %}"
18           enctype="multipart/form-data">
19       {% csrf_token %}
20       {% for form, attachment in assignment.forms %}
21         <p><strong>{{ form.file.label }}:</strong></p>
22         <p>
23           {% if assignment.is_active %}{{ form.file }}{% endif %}
24           {% if attachment.file %}
25             <a href="{{ attachment.download_url }}">{{ attachment.filename }}</a>
26             ({{ attachment.file.size|filesizeformat }})
27           {% else %}
28             (nie wysłano pliku)
29           {% endif %}
30         </p>
31       {% endfor %}
32       <input type="submit" value="Wyślij"/>
33     </form>
34   {% endfor %}
35
36
37 {% endblock %}