a2a1bc2596d598461b4f2d7e4d999c7115a2937f
[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 %}II etap{% endblock %}
6
7 {% block body %}
8   <h1>II etap Olimpiady Cyfrowej</h1>
9
10   {% chunk 'stage2_header' %}
11
12   {% for assignment in assignments %}
13     {% if assignment.title %}
14       <h2>{{ assignment.title }} (do {{ assignment.deadline }})</h2>
15     {% endif %}
16     <a href="{{ assignment.content_url }}"><strong>Zobacz treść zadania</strong></a>
17     <form method="POST" action="" enctype="multipart/form-data">
18       {% csrf_token %}
19       {% for form, attachment in assignment.attachment_forms %}
20         {{ form.assignment_id }}
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       {% for form in assignment.field_forms %}
33         {{ form.assignment_id }}
34         <p><strong>{{ form.value.label }}:</strong></p>
35         {{ form.value.errors }}
36         <p>
37           {% if assignment.is_active %}{{ form.value }}{% else %}{{ form.value.value }}{% endif %}
38         </p>
39       {% endfor %}
40       {% if assignment.is_active %}<input type="submit" value="Zapisz"/>{% endif %}
41     </form>
42   {% endfor %}
43
44
45 {% endblock %}