fix: ještě jeden návrh na zalámání
This commit is contained in:
parent
0b835ef9d4
commit
f2764a26f3
1 changed files with 7 additions and 1 deletions
|
@ -12,7 +12,13 @@
|
|||
|
||||
<p>Řešené problémy: {{ object.problem.all | join:", " }}</p>
|
||||
|
||||
<p>Řešitelé: {% for r in object.resitele.all %}{{ r }}{# mailto -> #}{% if edit %} (<a href="mailto:{{ r.osoba.email }}?subject={{ "Oprava řešení M&M " | urlencode }}{{ object.problem.all.0.hlavni_problem | urlencode }}">{{ r.osoba.email }}</a>){% endif %}{# <- mailto #}{# čárky -> #}{% if forloop.revcounter0 != 0 %}, {% endif %}{# <- čárky #}{% endfor %}</p>
|
||||
{% if edit %}
|
||||
<p>Řešitelé:
|
||||
{% for r in object.resitele.all %}{{ r }}(<a href="mailto:{{ r.osoba.email }}?subject={{ "Oprava řešení M&M " | urlencode }}{{ object.problem.all.0.hlavni_problem | urlencode }}">{{ r.osoba.email }}</a>){% if forloop.revcounter0 != 0 %}, {% endif %}{% endfor %}
|
||||
</p>
|
||||
{% else %}
|
||||
<p>Řešitelé: {{ object.resitele.all | join:", " }}</p>
|
||||
{% endif %}
|
||||
|
||||
{# https://docs.djangoproject.com/en/3.1/ref/models/instances/#django.db.models.Model.get_FOO_display #}
|
||||
<p>Forma: {{ object.get_forma_display }}</p>
|
||||
|
|
Loading…
Reference in a new issue