From 3d6c3ef26da619f9ae29ea3b03ccf656028c63de Mon Sep 17 00:00:00 2001 From: Jonas Havelka Date: Sat, 11 Sep 2021 11:17:46 +0200 Subject: [PATCH 1/2] =?UTF-8?q?Fix=20neuzav=C5=99en=C3=BD=20tag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/templates/seminar/odevzdavatko/detail.html | 1 + 1 file changed, 1 insertion(+) diff --git a/seminar/templates/seminar/odevzdavatko/detail.html b/seminar/templates/seminar/odevzdavatko/detail.html index 14094fb8..20bfc589 100644 --- a/seminar/templates/seminar/odevzdavatko/detail.html +++ b/seminar/templates/seminar/odevzdavatko/detail.html @@ -89,6 +89,7 @@ $(document).ready(function(){
{% csrf_token %} {{ form.management_form }} +
{% for subform in form %} From b1c4481794f12ad9a0d854571839dfb25fd2a893 Mon Sep 17 00:00:00 2001 From: Jonas Havelka Date: Sat, 11 Sep 2021 11:18:15 +0200 Subject: [PATCH 2/2] =?UTF-8?q?Add=20U=20=C5=99e=C5=A1en=C3=AD=20zobrazova?= =?UTF-8?q?t=20i=20e-mail=20na=20=C5=99e=C5=A1itele?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/templates/seminar/odevzdavatko/detail.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/seminar/templates/seminar/odevzdavatko/detail.html b/seminar/templates/seminar/odevzdavatko/detail.html index 20bfc589..dc53923f 100644 --- a/seminar/templates/seminar/odevzdavatko/detail.html +++ b/seminar/templates/seminar/odevzdavatko/detail.html @@ -60,7 +60,8 @@ $(document).ready(function(){

Řešené problémy: {{ object.problem.all | join:", " }}

-

Řešitelé: {{ object.resitele.all | join:", " }}

+

Řešitelé: {% for r in object.resitele.all %} {{ r }} ({{ r.osoba.email }}) +{% if forloop.revcounter0 != 0 %}, {% endif %} {% endfor %}

{# https://docs.djangoproject.com/en/3.1/ref/models/instances/#django.db.models.Model.get_FOO_display #}

Forma: {{ object.get_forma_display }}

ProblémBodyČíslo pro body