42f90db900ef4000364629dcb042f9a98ba2462c
[edumed.git] / stage2 / templates / stage2 / answer_list.html
1 {% extends 'base.html' %}
2
3
4 {% block body %}
5   <h1>{% if marked %}Ocenione odpowiedzi{% else %}Odpowiedzi do oceny{% endif %}</h1>
6   <p>Zadanie <cite>{{ assignment.title }}</cite> (max {{ assignment.max_points }} pkt)</p>
7   <p><strong>{% if assignment.is_active %}Możliwość oceniania zostanie włączona po terminie wysyłania rozwiązań</strong>{% endif %}</p>
8   {% if marked %}
9     <p><a href="{% url 'stage2_answer_list' assignment.id %}">Przejdź do odpowiedzi do oceny</a></p>
10   {% else %}
11     <p><a href="{% url 'stage2_marked_answers' assignment.id %}">Przejdź do ocenionych odpowiedzi</a></p>
12   {% endif %}
13   {% for answer in answers %}
14     <h3>{{ answer.participant }}</h3>
15     {% for label, attachment in answer.attachments %}
16       <p>
17         <strong>{{ label }}</strong>:
18         {% if attachment.file %}
19           <a href="{% url 'stage2_expert_download' attachment.id %}">{{ attachment.filename }}</a>
20           ({{ attachment.file.size|filesizeformat }})
21         {% else %}
22           (nie wysłano pliku)
23         {% endif %}
24       </p>
25     {% endfor %}
26     {% if not assignment.is_active %}
27       <form method="post" action="{% url 'stage2_mark_answer' answer.id %}">
28         {% csrf_token %}
29         {{ answer.form.as_p }}
30         <input type="submit" value="Zapisz"/>
31       </form>
32     {% endif %}
33   {% endfor %}
34 {% endblock %}