87b799d673515b1a79a55fc58b6ca00fd6d821cc
[prawokultury.git] / prawokultury / templates / contact / register-speaker / form.html
1 {% extends "base.html" %}
2 {% load i18n chunks %}
3
4 {% block titleextra %}{{ form.form_title }} :: {% endblock %}
5
6 {% block body %}
7     <h1>{% block contact_form_title %}{{ form.form_title }}{% endblock %}</h1>
8
9     {% if not form.started %}
10         <div class="form-info">
11             {% chunk "contact_form__"|add:form.form_tag|add:"__not_started" %}
12         </div>
13     {% else %}
14         {% if form.closed %}
15             <div class="form-info">
16                 {% chunk "contact_form__"|add:form.form_tag|add:"__closed" %}
17             </div>
18         {% else %}
19              <div class="form-info">
20                 {% chunk "contact_form__"|add:form.form_tag|add:"__running" %}
21             </div>
22
23             <form method="POST" action="." enctype="multipart/form-data" class="submit-form">
24               {% csrf_token %}
25               <table>
26                 {{ form.as_table }}
27                 <tr><td></td><td>{% chunk "contact_form__"|add:form.form_tag|add:"__data_processing" %}</td></tr>
28                 <tr><td></td><td><button>{% block contact_form_submit %}{{ form.submit_label }}{% endblock %}</button></td></tr>
29               </table>
30             </form>
31         {% endif %}
32     {% endif %}
33
34 <script type="text/javascript" src="/static/js/prefill.js"></script>
35
36 {% endblock %}