39 lines
1.1 KiB
HTML
39 lines
1.1 KiB
HTML
{% extends "seminar/zadani/base.html" %}
|
|
{% load staticfiles %}
|
|
|
|
{% block script %}
|
|
<script src="{% static 'seminar/skoly.js' %}"></script>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<h1>
|
|
{% block nadpis1a %}{% block nadpis1b %}
|
|
Přihláška do semináře
|
|
{% endblock %}{% endblock %}
|
|
</h1>
|
|
<form action="/prihlaska/" method="post">
|
|
{% csrf_token %}
|
|
{{form.non_field_errors}}
|
|
<ul class="form">
|
|
{% for field in form %}
|
|
<li>
|
|
{% if forloop.last %}
|
|
{% include "seminar/gdpr.html" %}
|
|
{% endif %}
|
|
<label class="field-label{% if field.field.required %} field-required{% endif %}" for="{{ field.name }}">{{ field.label }}:</label>
|
|
{{ field }}
|
|
{% if field.help_text %}<span class="field-helptext">{{ field.help_text|safe }}</span>{% endif %}
|
|
{% if field.errors %}<span class="field-error">{{ field.errors }}</span>{% endif %}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
<input type="submit" value="Odeslat">
|
|
</form>
|
|
<script>
|
|
$("#id_skola_stat_select").on("change",country_changed);
|
|
$("#id_kraj_select").on("change",region_changed);
|
|
//$("#id_skola_stat_select").on("change",country_changed);
|
|
</script>
|
|
|
|
{% endblock %}
|
|
|