From 7cc9c5a4f782d628310dc2bfd5219edc244fe996 Mon Sep 17 00:00:00 2001 From: Yoann Ono Dit Biot Date: Thu, 27 Mar 2014 17:16:36 +0100 Subject: [PATCH] Improves inline-formset display --- bootstrapform/templates/bootstrapform/formset.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bootstrapform/templates/bootstrapform/formset.html b/bootstrapform/templates/bootstrapform/formset.html index 1c84e73..476b6ca 100644 --- a/bootstrapform/templates/bootstrapform/formset.html +++ b/bootstrapform/templates/bootstrapform/formset.html @@ -2,6 +2,14 @@ {% for form in formset %} - {% include "bootstrapform/form.html" with form=form %} + {% if classes.label == 'sr-only' %} +
+ {% endif %} + + {% include "bootstrapform/form.html" with form=form %} + + {% if classes.label == 'sr-only' %} +
+ {% endif %} {% endfor %}