A little more readable text.
[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     <style>
8         #id_thematic_track {
9             list-style: none;
10         }
11         #id_thematic_track label {
12             font-weight: normal;
13         }
14         #id_thematic_track label:before {
15             content: '';
16         }
17     </style>
18
19     <h1>{% block contact_form_title %}{{ form.form_title }}{% endblock %}</h1>
20
21     {% if not form.started %}
22         <div class="form-info">
23             {% chunk "contact_form__"|add:form.form_tag|add:"__not_started" %}
24         </div>
25     {% else %}
26         {% if form.closed %}
27             <div class="form-info">
28                 {% chunk "contact_form__"|add:form.form_tag|add:"__closed" %}
29             </div>
30         {% else %}
31              <div class="form-info">
32                 {% chunk "contact_form__"|add:form.form_tag|add:"__running" %}
33             </div>
34
35             <form method="POST" action="." enctype="multipart/form-data" class="submit-form">
36               {% csrf_token %}
37               <table>
38                 {{ form.as_table }}
39                 <tr><td></td><td><button>{% block contact_form_submit %}{{ form.submit_label }}{% endblock %}</button></td></tr>
40               </table>
41             </form>
42         {% endif %}
43     {% endif %}
44
45 <script type="text/javascript" src="/static/js/prefill.js"></script>
46
47 {% endblock %}