112 lines
		
	
	
	
		
			3.4 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			112 lines
		
	
	
	
		
			3.4 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {% extends "seminar/zadani/base.html" %}
 | |
| {% load staticfiles %}
 | |
| 
 | |
| {% block script %}
 | |
|     <!--script type="text/javascript" src="{% static 'admin/js/vendor/jquery/jquery.js' %}"></script!-->
 | |
|     {{form.media}}
 | |
|     <script src="{% static 'seminar/prihlaska.js' %}"></script>
 | |
| {% endblock %}
 | |
| 
 | |
| {% block content %}
 | |
| <h1>
 | |
|   {% block nadpis1a %}{% block nadpis1b %}
 | |
|     Přihláška do semináře
 | |
|   {% endblock %}{% endblock %}
 | |
| </h1>
 | |
| 
 | |
| <form action="{% url 'seminar_prihlaska' %}" method="post">
 | |
|   {% csrf_token %}
 | |
|   {{form.non_field_errors}}
 | |
| 
 | |
| 
 | |
| <hr>
 | |
|          <h4>
 | |
|           Přihlašovací údaje
 | |
|          </h4>
 | |
|          <table class="form">
 | |
|            {% include "seminar/prihlaska_field.html" with field=form.username %}
 | |
|            {% include "seminar/prihlaska_field.html" with field=form.password %}
 | |
|            {% include "seminar/prihlaska_field.html" with field=form.password_check %}
 | |
|          </table>
 | |
| 
 | |
| <hr>
 | |
| 
 | |
|         <h4>
 | |
|          Osobní údaje
 | |
|         </h4>
 | |
|           <table class="form">
 | |
|             {% include "seminar/prihlaska_field.html" with field=form.jmeno %}
 | |
|             {% include "seminar/prihlaska_field.html" with field=form.prijmeni %}
 | |
|             {% include "seminar/prihlaska_field.html" with field=form.pohlavi_muz%}
 | |
|             {% include "seminar/prihlaska_field.html" with field=form.email %}
 | |
|             {% include "seminar/prihlaska_field.html" with field=form.telefon %}
 | |
|             {% include "seminar/prihlaska_field.html" with field=form.datum_narozeni %}
 | |
|          </table>
 | |
| 
 | |
| <hr>
 | |
| 
 | |
|         <h4>
 | |
|           Bydliště
 | |
|         </h4>
 | |
|           <table class="form">
 | |
|            {% include "seminar/prihlaska_field.html" with field=form.ulice %}
 | |
|            {% include "seminar/prihlaska_field.html" with field=form.mesto %}
 | |
|            {% include "seminar/prihlaska_field.html" with field=form.psc %}
 | |
|            {% include "seminar/prihlaska_field.html" with field=form.stat %}
 | |
|            {% include "seminar/prihlaska_field.html" with field=form.stat_text id="id_li_stat_text"%}
 | |
|          </table>
 | |
| 
 | |
| <hr>
 | |
| 
 | |
|         <h4>
 | |
|          Škola
 | |
|         </h4>
 | |
|          <table class="form">
 | |
|            {% include "seminar/prihlaska_field.html" with field=form.skola %}
 | |
|            <tr><td colspan="2" ><button id="id_skola_text_button" type="button">Škola není v seznamu</button></td></tr>
 | |
|            <tr><td id="id_li_skola_vypln" colspan="2">Vyplň prosím celý název a adresu školy.</td></tr>
 | |
|            {% include "seminar/prihlaska_field.html" with field=form.skola_nazev id="id_li_skola_nazev" %}
 | |
|            {% include "seminar/prihlaska_field.html" with field=form.skola_adresa id="id_li_skola_adresa" %}
 | |
|            {% include "seminar/prihlaska_field.html" with field=form.rok_maturity %}
 | |
|          </table>
 | |
| 
 | |
| <hr>
 | |
| 
 | |
|         <h4>
 | |
|          Pošta
 | |
|         </h4>
 | |
|          <table class="form">
 | |
|            {% include "seminar/prihlaska_field.html" with field=form.zasilat %}
 | |
|          </table>
 | |
|  <hr>
 | |
| 
 | |
|          <h4>
 | |
|           GDPR
 | |
|          </h4>
 | |
|           {% include "seminar/gdpr.html" %}
 | |
|           <table class="form">
 | |
|             {% include "seminar/prihlaska_field.html" with field=form.gdpr %}
 | |
|           </table>
 | |
| 
 | |
| <hr>
 | |
| 
 | |
|         <h4>
 | |
|          Zasílání propagačních materiálů
 | |
|         </h4>
 | |
|          <table class="form">
 | |
|            {% include "seminar/prihlaska_field.html" with field=form.spam %}
 | |
|          </table>
 | |
| 
 | |
| 
 | |
| 
 | |
| <hr>
 | |
| 
 | |
|     <input type="submit" value="Odeslat">
 | |
| </form>
 | |
| <script>
 | |
| $("#id_stat").on("change",addrCountryChanged);
 | |
| $("#id_skola_text_button").on("click",schoolNotInList);
 | |
| </script>
 | |
| 
 | |
| 
 | |
| {% endblock %}
 | 
