1 {% extends 'base.html' %}
2 {% load textile_pl from fnp_markup %}
5 {% block title %}Drugi etap{% endblock %}
8 <h1>Drugi etap Olimpiady Cyfrowej</h1>
10 {% chunk 'stage2_header' %}
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="" enctype="multipart/form-data">
17 {% for form in assignment.field_forms %}
18 {{ form.assignment_id }}
19 <p><strong>{{ form.value.label }}:</strong></p>
20 {{ form.value.errors }}
22 {% if assignment.is_active %}{{ form.value }}{% else %}{{ form.value.initial }}{% endif %}
25 {% for form, attachment in assignment.attachment_forms %}
26 {{ form.assignment_id }}
27 <p><strong>{{ form.file.label }}:</strong></p>
29 {% if assignment.is_active %}{{ form.file }}{% endif %}
30 {% if attachment.file %}
31 <a href="{{ attachment.download_url }}">{{ attachment.filename }}</a>
32 ({{ attachment.file.size|filesizeformat }})
38 {% if assignment.is_active %}<input type="submit" value="Wyślij"/>{% endif %}