diff --git a/bootstrapform/templates/bootstrapform/formset.html b/bootstrapform/templates/bootstrapform/formset.html index 476b6ca..a2efdc8 100644 --- a/bootstrapform/templates/bootstrapform/formset.html +++ b/bootstrapform/templates/bootstrapform/formset.html @@ -1,15 +1,11 @@ {{ formset.management_form }} {% for form in formset %} - {% if classes.label == 'sr-only' %}
+ {% include "bootstrapform/form.html" with form=form %} +
+ {%else%} + {% include "bootstrapform/form.html" with form=form %} {% endif %} - - {% include "bootstrapform/form.html" with form=form %} - - {% if classes.label == 'sr-only' %} - - {% endif %} - {% endfor %}