From 2f956ae2e7ea0f3d77f584cd41605b59846a2e45 Mon Sep 17 00:00:00 2001 From: Jethro Date: Sun, 13 Sep 2015 14:00:55 +0200 Subject: [PATCH] Zobrazovat probehla soustredeni. --- .../soustredeni/seznam_soustredeni.html | 48 +++++++++++-------- 1 file changed, 27 insertions(+), 21 deletions(-) diff --git a/seminar/templates/seminar/soustredeni/seznam_soustredeni.html b/seminar/templates/seminar/soustredeni/seznam_soustredeni.html index 020c78b6..45d2ba75 100644 --- a/seminar/templates/seminar/soustredeni/seznam_soustredeni.html +++ b/seminar/templates/seminar/soustredeni/seznam_soustredeni.html @@ -9,13 +9,13 @@ {# 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 #} -

- {% block nadpis1a %}{% block nadpis1b %} - Soustředění - {% endblock %}{% endblock %} -

{# Projdi vsechna soustredeni #} {% for soustredeni in object_list %} @@ -29,30 +29,36 @@ že jste přihlášení.
{% endif %} {# misto soustredeni TODO upravit#} - {% if soustredeni.misto %}

- Soustředění v {{soustredeni.misto}} - od {{soustredeni.datum_zacatku}} do {{soustredeni.datum_konce}} - při {{soustredeni.rocnik.rocnik}}. ročníku M&M + {{soustredeni.get_typ_display}} + {{soustredeni.misto}}

- {% endif %} + {# popis soustredeni #} {% if soustredeni.text %} {% autoescape off %}{{soustredeni.text}}{% endautoescape %} {% endif %} - {# Účastníci #} -

Soustředění se zúčastnili tito účastníci:

- + {% if user.is_authenticated %} + {# Účastníci #} +

Soustředění se zúčastnili tito účastníci:

+ + {% endif %} {% endif %} {% empty %} Žádná soustředění zatím neproběhla! {% endfor %} -{% else %}{% include 'seminar/pracuje_se.html' %}{% endif %}{% endblock %} +{#% else %}{% include 'seminar/pracuje_se.html' %}{% endif %#} + +{% endblock %}