1 {% extends "base.html" %}
4 {% block titleextra %}{{ form.form_title }} :: {% endblock %}
7 <h1>{% block contact_form_title %}{{ form.form_title }}{% endblock %}</h1>
10 {% if not form.started %}
11 {# Not yet started. #}
12 <div class="form-info">
13 {% chunk "contact_form__"|add:form.form_tag|add:"__not_started" %}
16 {# Already started. #}
17 {% if form.limit_reached %}
19 <div class="form-info">
20 {% chunk "contact_form__"|add:form.form_tag|add:"__closed" %}
24 <div class="form-info">
25 {% chunk "contact_form__"|add:form.form_tag|add:"__running" %}
27 <form method="POST" action="." enctype="multipart/form-data" class="submit-form">
30 {% if form.non_field_errors %}<tr><td colspan="2">{{ form.non_field_errors }}</td></tr>{% endif %}
31 {% for field in form.main_fields %}
32 {% include "snippets/field_as_table_row.html" %}
34 <tr><td colspan="2"><h3>{% trans "We would be grateful if you could answer our questions below. This will allow us to better adapt to your expectations in the future." %}</h3></td></tr>
35 {% for field in form.survey_fields %}
36 {% include "snippets/field_as_table_row.html" %}
38 <tr><td colspan="2"></td></tr>
39 {% for field in form.agreement_fields %}
40 {% include "snippets/field_as_table_row.html" %}
42 <tr><td></td><td><button>{% block contact_form_submit %}{{ form.submit_label }}{% endblock %}</button></td></tr>
48 <script type="text/javascript" src="/static/js/prefill.js"></script>