arbiters etc.
[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     <a href="{{ assignment.content_url }}"><strong>Zobacz treść zadania</strong></a>
15     <form method="POST" action="{% url 'stage2_upload' assignment.id participant.id participant.key %}"
16           enctype="multipart/form-data">
17       {% csrf_token %}
18       {% for form, attachment in assignment.forms %}
19         <p><strong>{{ form.file.label }}:</strong></p>
20         <p>
21           {% if assignment.is_active %}{{ form.file }}{% endif %}
22           {% if attachment.file %}
23             <a href="{{ attachment.download_url }}">{{ attachment.filename }}</a>
24             ({{ attachment.file.size|filesizeformat }})
25           {% else %}
26             (nie wysłano pliku)
27           {% endif %}
28         </p>
29       {% endfor %}
30       {% if assignment.is_active %}<input type="submit" value="Wyślij"/>{% endif %}
31     </form>
32   {% endfor %}
33
34
35 {% endblock %}