Jonas Havelka
2 years ago
1 changed files with 0 additions and 51 deletions
@ -1,51 +0,0 @@ |
|||
{% 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.deadline_reseni | 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>Zpětná vazba od opravovatele</th>{# <th>Deadline pro body</th> #}</tr> |
|||
{% for h in hodnoceni %} |
|||
<tr class="hodnoceni"> |
|||
<td>{{ h.problem }}</td> |
|||
<td>{{ h.body }}</td> |
|||
<td>{{ h.feedback }}</td> |
|||
{# <td>{{ h.deadline_body }}</td>#} |
|||
</tr> |
|||
{% endfor %} |
|||
</table> |
|||
|
|||
{% endblock %} |
Loading…
Reference in new issue