how to add class to label in quick_form flask bootstrap
I had a similar problem. A list of items was used to generate a form with multiple checkboxes. I needed to add a label class for styling them horizontally. I was able to loop through my form object and change class for the form field.label
.
<form action="" method="post">{% with test = form.example %}{% for field in test %} {{ field.label(class_='checkbox-inline') }} {{ field }}{% endfor %}{% endwith %}<p>{{ form.submit() }}</p></form>