answer counts and other minor improvements
[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 not assignment.is_active %}
9     {% if marked %}
10       <p><a href="{% url 'stage2_answer_list' assignment.id %}">Przejdź do odpowiedzi do oceny</a></p>
11     {% else %}
12       <p><a href="{% url 'stage2_marked_answers' assignment.id %}">Przejdź do ocenionych odpowiedzi</a></p>
13     {% endif %}
14   {% endif %}
15   <p>{% if not marked and not assignment.is_active %}Pozostało {% endif %}{{ answers|length }} odpowiedzi</p>
16   {% for answer in answers %}
17     <h3>{{ answer.participant }}</h3>
18     {% for label, attachment in answer.attachments %}
19       <p>
20         <strong>{{ label }}</strong>:
21         {% if attachment.file %}
22           <a href="{% url 'stage2_expert_download' attachment.id %}">{{ attachment.filename }}</a>
23           ({{ attachment.file.size|filesizeformat }})
24         {% else %}
25           (nie wysłano pliku)
26         {% endif %}
27       </p>
28     {% endfor %}
29     {% if not assignment.is_active %}
30       <form method="post" action="{% url 'stage2_mark_answer' answer.id %}">
31         {% csrf_token %}
32         {{ answer.form.as_p }}
33         <input type="submit" value="Zapisz"/>
34       </form>
35     {% endif %}
36   {% endfor %}
37 {% endblock %}