{% load static cms_tags sekizai_tags i18n %}
{% spaceless %}
   {% if form %}
        <form id="form{{ instance.id|safe }}{{ form.slug }}" class="djangocms-frontend-ajax-form" novalidate action="{% url 'xhr:ajaxview' instance.id %}"
            method="post"{{ instance.get_attributes }}>
            {% csrf_token %}
            {% include 'djangocms_frontend/ajax_form.html' with form=form id=instance.id tracking=instance.tracking_code %}
            {% if instance.form_submit_align == "center" %}
                <div class="text-center">
            {% endif %}
            <input type="submit" value="{{ instance.form_submit_message|default:_("Submit") }}"
                class="btn btn-{{ instance.form_submit_context }}{% if instance.form_submit_align == "start" or instance.form_submit_align == "end" %} float-{{ instance.form_submit_align }}{% endif %}"/>
            {% if instance.form_submit_align == "center" %}
                </div>
            {% endif %}
        </form>
    {% endif %}
{% endspaceless %}
