Web M&M
https://mam.matfyz.cz
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.4 KiB
50 lines
1.4 KiB
{% extends "base.html" %}
|
|
{% load static %}
|
|
{% load deadliny %}
|
|
|
|
{% block content %}
|
|
|
|
<p>Řešené problémy: {{ object.problem.all | join:", " }}</p>
|
|
|
|
<p>Řešitelé: {% for r in object.resitele.all %} {{ r }}
|
|
{% if forloop.revcounter0 != 0 %}, {% endif %} {% endfor %}</p>
|
|
|
|
{# https://docs.djangoproject.com/en/3.1/ref/models/instances/#django.db.models.Model.get_FOO_display #}
|
|
<p>Forma: {{ object.get_forma_display }}</p>
|
|
|
|
<p>Doručeno {{ object.cas_doruceni }}, deadline: {{object.cas_doruceni | deadline_html }}</p>
|
|
|
|
{# Soubory: #}
|
|
<h3>Přílohy:</h3>
|
|
{% if object.prilohy.all %}
|
|
<table class="dosla_reseni">
|
|
<tr><th>Soubor</th><th>Řešitelova poznámka</th><th>Datum</th></tr>
|
|
{% for priloha in object.prilohy.all %}
|
|
<tr>
|
|
<td><a href="{{ priloha.soubor.url }}" download>{{ priloha.split | last }}</a></td>
|
|
<td>{{ priloha.res_poznamka }}</td>
|
|
<td>{{ priloha.vytvoreno }}</td></tr>
|
|
{# TODO: Orgo-poznámka, ideálně jako formulář #}
|
|
{% endfor %}
|
|
</table>
|
|
{% else %}
|
|
<p>Žádné přílohy</p>
|
|
{% endif %}
|
|
|
|
{#<h3>Poznámka:</h3>#}
|
|
{#<p>{{ poznamka }}</p>#}
|
|
|
|
{# Hodnocení: #}
|
|
<h3>Hodnocení:</h3>
|
|
<table id="form_set" class="dosla_reseni">
|
|
<tr><th>Problém</th><th>Body</th>{# <th>Číslo pro body</th> #}</tr>
|
|
{% for h in hodnoceni %}
|
|
<tr class="hodnoceni">
|
|
<td>{{ h.problem }}</td>
|
|
<td>{{ h.body }}</td>
|
|
{# <td>{{ h.cislo_body }}</td>#}
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
|
|
{% endblock %}
|
|
|