Zobrazovat probehla soustredeni.
This commit is contained in:
parent
cf94e10a66
commit
2f956ae2e7
1 changed files with 27 additions and 21 deletions
|
@ -9,13 +9,13 @@
|
||||||
|
|
||||||
{# zmena fotky #}{% block header %}soustredeni{% endblock %}
|
{# zmena fotky #}{% block header %}soustredeni{% endblock %}
|
||||||
|
|
||||||
{% block content %}{% if user.is_authenticated %}{# PRACUJE SE STRANKA #}
|
{% block nadpis1a %}{% block nadpis1b %}
|
||||||
|
Soustředění
|
||||||
|
{% endblock %}{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
{#% if user.is_authenticated %#}{# PRACUJE SE STRANKA #}
|
||||||
|
|
||||||
<h2>
|
|
||||||
{% block nadpis1a %}{% block nadpis1b %}
|
|
||||||
Soustředění
|
|
||||||
{% endblock %}{% endblock %}
|
|
||||||
</h2>
|
|
||||||
|
|
||||||
{# Projdi vsechna soustredeni #}
|
{# Projdi vsechna soustredeni #}
|
||||||
{% for soustredeni in object_list %}
|
{% for soustredeni in object_list %}
|
||||||
|
@ -29,30 +29,36 @@
|
||||||
že jste přihlášení. <br>
|
že jste přihlášení. <br>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{# misto soustredeni TODO upravit#}
|
{# misto soustredeni TODO upravit#}
|
||||||
{% if soustredeni.misto %}
|
|
||||||
<h2>
|
<h2>
|
||||||
Soustředění v {{soustredeni.misto}}
|
{{soustredeni.get_typ_display}}
|
||||||
od {{soustredeni.datum_zacatku}} do {{soustredeni.datum_konce}}
|
{{soustredeni.misto}}
|
||||||
při {{soustredeni.rocnik.rocnik}}. ročníku M&M
|
|
||||||
</h2>
|
</h2>
|
||||||
{% endif %}
|
<ul>
|
||||||
|
<li>
|
||||||
|
{{soustredeni.datum_zacatku}} – {{soustredeni.datum_konce}}
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
{# popis soustredeni #}
|
{# popis soustredeni #}
|
||||||
{% if soustredeni.text %}
|
{% if soustredeni.text %}
|
||||||
{% autoescape off %}{{soustredeni.text}}{% endautoescape %}
|
{% autoescape off %}{{soustredeni.text}}{% endautoescape %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{# Účastníci #}
|
{% if user.is_authenticated %}
|
||||||
<h3>Soustředění se zúčastnili tito účastníci:</h3>
|
{# Účastníci #}
|
||||||
<ul>
|
<h3>Soustředění se zúčastnili tito účastníci:</h3>
|
||||||
{% for i in soustredeni.soustredeni_ucastnici_set.all %}
|
<ul>
|
||||||
<li>{{i.resitel}}
|
{% for i in soustredeni.soustredeni_ucastnici_set.all %}
|
||||||
{% empty %}
|
<li>{{i.resitel}}
|
||||||
<li>Nic!
|
{% empty %}
|
||||||
{% endfor %}
|
<li>Nic!
|
||||||
</ul>
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% empty %}
|
{% empty %}
|
||||||
Žádná soustředění zatím neproběhla!
|
Žádná soustředění zatím neproběhla!
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% else %}{% include 'seminar/pracuje_se.html' %}{% endif %}{% endblock %}
|
{#% else %}{% include 'seminar/pracuje_se.html' %}{% endif %#}
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue