{% load crispy_forms_utils %}

{% specialspaceless %}
{% if form_tag %}<form {{ flat_attrs|safe }} method="{{ form_method }}" {% if form.is_multipart %} enctype="multipart/form-data"{% endif %}>{% endif %}
    {% if form_method|lower == 'post' and not disable_csrf %}
        {% csrf_token %}
    {% endif %}

    {% include "bootstrap3/display_form.html" %}

    {% if inputs %}
        <div class="form-group form-actions">
            {% if label_class %}
                <div class="controls col-lg-offset-{{ label_size }} {{ label_class }}"></div>
            {% endif %}

            <div class="controls {{ field_class }}">
                {% for input in inputs %}
                    {% include "bootstrap3/layout/baseinput.html" %}
                {% endfor %}
            </div>
        </div>
    {% endif %}

{% if form_tag %}</form>{% endif %}
{% endspecialspaceless %}

{% load crispy_forms_utils %}

{% specialspaceless %}
{% if form_tag %}<form {{ flat_attrs|safe }} method="{{ form_method }}" {% if form.is_multipart %} enctype="multipart/form-data"{% endif %}>{% endif %}
    {% if form_method|lower == 'post' and not disable_csrf %}
        {% csrf_token %}
    {% endif %}

    {% include "bootstrap3/display_form.html" %}

    {% if inputs %}
        <div class="form-group form-actions">
            {% if label_class %}
                <div class="aab controls {{ label_class }}"></div>
            {% endif %}

            <div class="controls {{ field_class }}">
                {% for input in inputs %}
                    {% include "bootstrap3/layout/baseinput.html" %}
                {% endfor %}
            </div>
        </div>
    {% endif %}

{% if form_tag %}</form>{% endif %}
{% endspecialspaceless %}

Fix for button alignment for non-lg bootstrap classes
Fix for button alignment for non-lg bootstrap classes
