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 %} | ||||
| 
 | ||||
| {% block content %}{% if user.is_authenticated %}{# PRACUJE SE STRANKA #} | ||||
| 
 | ||||
|   <h2> | ||||
|     {% block nadpis1a %}{% block nadpis1b %} | ||||
| {% block nadpis1a %}{% block nadpis1b %} | ||||
|   Soustředění | ||||
|     {% endblock %}{% endblock %} | ||||
|   </h2> | ||||
| {% endblock %}{% endblock %} | ||||
| 
 | ||||
| {% block content %} | ||||
| {#% if user.is_authenticated %#}{# PRACUJE SE STRANKA #} | ||||
| 
 | ||||
| 
 | ||||
|   {# Projdi vsechna soustredeni #} | ||||
|   {% for soustredeni in object_list %} | ||||
|  | @ -29,17 +29,20 @@ | |||
|         že jste přihlášení. <br> | ||||
|       {% endif %} | ||||
|       {# misto soustredeni TODO upravit#} | ||||
|       {% if soustredeni.misto %} | ||||
|         <h2> | ||||
|           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}} | ||||
|         </h2> | ||||
|       {% endif %} | ||||
| 	<ul> | ||||
| 	<li> | ||||
| 		{{soustredeni.datum_zacatku}} – {{soustredeni.datum_konce}} | ||||
| 	</li> | ||||
| 	</ul> | ||||
|       {# popis soustredeni #} | ||||
|       {% if soustredeni.text %} | ||||
|         {% autoescape off %}{{soustredeni.text}}{% endautoescape %} | ||||
|       {% endif %} | ||||
|       {% if user.is_authenticated %} | ||||
|         {# Účastníci #} | ||||
|         <h3>Soustředění se zúčastnili tito účastníci:</h3> | ||||
|         <ul> | ||||
|  | @ -50,9 +53,12 @@ | |||
|         {% endfor %} | ||||
|         </ul> | ||||
|       {% 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 %} | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue