Trochu učesán seznam orgů
This commit is contained in:
		
							parent
							
								
									1c71fbe065
								
							
						
					
					
						commit
						ceb2146388
					
				
					 1 changed files with 23 additions and 18 deletions
				
			
		|  | @ -1,48 +1,53 @@ | |||
| {% extends "seminar/cojemam/base.html" %} | ||||
| 
 | ||||
| {% block nadpis1 %}{% if user.is_authenticated %}{# PRACUJE SE STRANKA #} | ||||
| {% block nadpis1 %} | ||||
|   {% if aktivni %} | ||||
|     Organizátoři | ||||
|   {% else %} | ||||
|     Vysloužilí organizátoři | ||||
|   {% endif %} | ||||
| {% endif %}{% endblock%} | ||||
| {% endblock%} | ||||
| 
 | ||||
| {% block content %}{% if user.is_authenticated %}{# PRACUJE SE STRANKA #} | ||||
| {% block content %} | ||||
| <div> | ||||
|   {% for org in object_list %} | ||||
|     <!-- | ||||
|     {% if org.user.is_active %} | ||||
|       <b>Aktivní</b> | ||||
|     {% else %} | ||||
|       Není aktivní | ||||
|     {% endif %} | ||||
|     {{org.user.first_name}}  | ||||
|     --> | ||||
|     <h2> | ||||
|     {{org.user.first_name}} | ||||
|     {% if org.prezdivka %} | ||||
|       "{{org.prezdivka}}" | ||||
|       „{{org.prezdivka}}“ | ||||
|     {% endif %} | ||||
|     {{org.user.last_name}} | ||||
|     </h2> | ||||
|     {% if org.foto %} | ||||
|     <div class="foto_org"> | ||||
|       {# <img src="{{org.foto.url}}" height="{{org.foto.height}}"> #} | ||||
|       <a href="{{org.foto.url}}"><img src="{{org.foto_male.url}}" height="{{org.foto_male.height}}" alt="{{org.first_name}} {{org.last_name}}"></a> | ||||
|     </div> | ||||
|     {% endif %} | ||||
|     {{org.user.last_name}} <br> | ||||
|     <ul> | ||||
|       {#TODO časovat dle rodu #} | ||||
|       {% if org.organizuje_od_roku %} | ||||
|         <li>Organizuje od roku: {{org.organizuje_od_roku}} | ||||
|         <li>{% if aktivni %}Organizuje{% else %}Organizoval{% endif %} od roku {{org.organizuje_od_roku}} | ||||
|       {% endif %} | ||||
|       {% if org.organizuje_do_roku %} | ||||
|         <li>Organizuje do roku: {{org.organizuje_do_roku}} | ||||
|         <li>{% if aktivni %}Organizuje{% else %}Organizoval{% endif %} do roku {{org.organizuje_do_roku}} | ||||
|       {% endif %} | ||||
|       {% if org.studuje %} | ||||
|         <li>Studuje: {{org.studuje}} | ||||
|       {% endif %} | ||||
|       {% if org.user.email %} | ||||
|         <li>Pošta: | ||||
|         {# zobrazeni e-mailu (na jednom radku, aby nevznikali mezery navic) #} | ||||
|         {# zobrazeni e-mailu (na jednom radku, aby nevznikaly mezery navic) #} | ||||
|         {% for znak in org.user.email %}{% if znak == '@' %} <zavináč> {% elif znak == '.' %} <tečka> {% else %}{{znak}}{% endif %}{% endfor %} | ||||
|       {% endif %} | ||||
|     </ul> | ||||
|     {% if org.foto %} | ||||
|     <div class="foto_org"> | ||||
|       <img src="{{org.foto.url}}" height="{{org.foto.height}}"> | ||||
|       <img src="{{org.foto_male.url}}" height="{{org.foto_male.height}}"> | ||||
|     </div> | ||||
|     {% endif %} | ||||
|     {{org.strucny_popis_organizatora}} | ||||
|     <hr> | ||||
|   {% endfor %} | ||||
| 
 | ||||
|  | @ -51,6 +56,6 @@ | |||
|   {% endif %} | ||||
| 
 | ||||
| </div> | ||||
| {% else %}{% include 'seminar/pracuje_se.html' %} | ||||
| {% endif %}{% endblock content %} | ||||
| 
 | ||||
| {% endblock content %} | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Matěj Kocián
						Matěj Kocián