|
|
@ -60,7 +60,8 @@ $(document).ready(function(){ |
|
|
|
|
|
|
|
<p>Řešené problémy: {{ object.problem.all | join:", " }}</p> |
|
|
|
|
|
|
|
<p>Řešitelé: {{ object.resitele.all | join:", " }}</p> |
|
|
|
<p>Řešitelé: {% for r in object.resitele.all %} {{ r }} (<a href="mailto:{{ r.osoba.email }}">{{ r.osoba.email }}</a>) |
|
|
|
{% 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> |
|
|
@ -89,6 +90,7 @@ $(document).ready(function(){ |
|
|
|
<form method=post><table> |
|
|
|
{% csrf_token %} |
|
|
|
{{ form.management_form }} |
|
|
|
</table> |
|
|
|
<table id="form_set"> |
|
|
|
<tr><th>Problém</th><th>Body</th><th>Číslo pro body</th></tr> |
|
|
|
{% for subform in form %} |
|
|
|