73c157eff782bb6f5e683a6b7c92103ec788da3c
[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><button>{% block contact_form_submit %}{{ form.submit_label }}{% endblock %}</button></td></tr>
28               </table>
29             </form>
30         {% endif %}
31     {% endif %}
32
33 <script type="text/javascript" src="/static/js/prefill.js"></script>
34
35 {% endblock %}