1 {% extends 'base.html' %}
2 {% load textile_pl from fnp_markup %}
5 {% block title %}II etap{% endblock %}
8 <h1>II etap Olimpiady Cyfrowej</h1>
10 {% chunk 'stage2_header' %}
12 {% for assignment in assignments %}
13 {% if assignment.title %}
14 <h2>{{ assignment.title }} (do {{ assignment.deadline }})</h2>
16 <a href="{{ assignment.content_url }}"><strong>Zobacz treść zadania</strong></a>
17 <form method="POST" action="" enctype="multipart/form-data" class="submit-form">
19 {% for form, attachment in assignment.attachment_forms %}
20 {{ form.assignment_id }}
21 <p><strong>{{ form.file.label }}:</strong></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 }})
32 {% for form in assignment.field_forms %}
33 {{ form.assignment_id }}
34 <p><strong>{{ form.value.label }}:</strong></p>
35 {{ form.value.errors }}
37 {% if assignment.is_active %}{{ form.value }}{% else %}{{ form.value.value }}{% endif %}
40 {% if assignment.is_active %}<input type="submit" value="Zapisz"/>{% endif %}