Split form intro.
[wolnelektury.git] / src / wolnelektury / templates / forms / includes / built_form.html
1 {% load honeypot %}
2 {% load more %}
3
4 <h1>{{ form.title }}</h1>
5
6     <div class="form-info">
7         {{ form.intro|first_part:"---"|safe }}
8     </div>
9
10     {{ form_for_form.media }}
11     <form method="POST" action="{{ form.get_absolute_url }}" {% if form_for_form.is_multipart %}enctype="multipart/form-data"{% endif %} class="submit-form">
12     {% csrf_token %}
13     {% render_honeypot_field %}
14     <table>
15         {{ form_for_form.as_table }}
16         {% if form_for_form.fields %}
17             <tr><td></td><td><button>{{ form.button_text }}</button></td></tr>
18         {% endif %}
19     </table>
20     </form>
21
22
23     <div class="form-info">
24         {{ form.intro|second_part:"---"|safe }}
25     </div>