Browse Source

Merge branch 'add_resitel_email_to_reseni' into test

middleware_test
Jonas Havelka 3 years ago
parent
commit
61936708ad
  1. 4
      seminar/templates/seminar/odevzdavatko/detail.html

4
seminar/templates/seminar/odevzdavatko/detail.html

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

Loading…
Cancel
Save