Pavel "LEdoian" Turinsky
4 years ago
6 changed files with 106 additions and 5 deletions
@ -0,0 +1,38 @@ |
|||||
|
{% extends "base.html" %} |
||||
|
{% load static %} |
||||
|
{% load deadliny %} |
||||
|
|
||||
|
{% block custom_css %} |
||||
|
<style type=text/css> |
||||
|
.dosla_reseni tr th { |
||||
|
text-align: center; |
||||
|
} |
||||
|
.dosla_reseni tr th, .dosla_reseni tr td { |
||||
|
border: 1px solid black; |
||||
|
padding: 1px 10px 1px 10px; |
||||
|
border-collapse: collapse; |
||||
|
} |
||||
|
</style> |
||||
|
{% endblock custom_css %} |
||||
|
|
||||
|
{% block content %} |
||||
|
{% for rocnik, hodnoceni in podle_rocniku %} |
||||
|
<h1>Ročník {{ rocnik }}</h1> |
||||
|
<table class="dosla_reseni"> |
||||
|
<tr> |
||||
|
<th>Doručeno</th> |
||||
|
<th>Problém</th> |
||||
|
<th>Body</th> |
||||
|
<th>Deadline</th> |
||||
|
</tr> |
||||
|
{% for hodn in hodnoceni %} |
||||
|
<tr> |
||||
|
<td>{{ hodn.reseni.cas_doruceni }}</td> |
||||
|
<td>{{ hodn.problem }}</td> |
||||
|
<td>{{ hodn.body|default_if_none:"---" }}</td> |
||||
|
<td>{{ hodn.reseni.cas_doruceni | deadline_html }}</td> |
||||
|
</tr> |
||||
|
{% endfor %} |
||||
|
</table> |
||||
|
{% endfor %} |
||||
|
{% endblock %} |
Loading…
Reference in new issue