{% extends "django_cos/pages/web_page.html" %}

{% load wagtailcore_tags django_cos_tags bootstrap4 %}

{% block content %}

{% include_block page.body with settings=settings %}

{% if page.form_live %}
<div class="container">
    <form class='{{ page.form_css_class }}' id='{{ page.form_id }}' action="{% pageurl self %}" method="POST" {% if form|is_file_form %}enctype="multipart/form-data"{% endif %}>
        {% csrf_token %}
        {% bootstrap_form form layout='horizontal' %}
        <div class="form-group mt-5 row">
            <div class="{{'horizontal_label_class'|bootstrap_settings}}"></div>
            <div class="{{'horizontal_field_class'|bootstrap_settings}}">
                <button type="submit" class="btn {{page.button_size}} {{page.button_style}} {{page.button_css_class}}">
                    {{ page.button_text }}
                </button>
            </div>
        </div>
    </form>
</div>
{% endif %}

{% endblock %}
