Jonas Havelka
3 years ago
3 changed files with 81 additions and 0 deletions
@ -0,0 +1,50 @@ |
|||||
|
{% 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 %} |
Loading…
Reference in new issue