helloflask / bootstrap-flask

Bootstrap 4 & 5 helper for your Flask projects.
https://bootstrap-flask.readthedocs.io
Other
1.12k stars 190 forks source link

disable wrapper div in form #232

Closed foozzi closed 2 years ago

foozzi commented 2 years ago

how to remove this wrap (mb-3): Снимок экрана от 2022-05-24 17-57-20

class AuthForm(FlaskForm):
    hash = StringField("", validators=[Length(8, 256)], 
        render_kw={"class": "me-2"})

    submit = SubmitField("Auth", 
        render_kw={"class": "btn-outline-success"})
{{render_form(auth_form(), extra_classes="d-flex")}}
greyli commented 2 years ago

This div can't be removed, but you can set config BOOTSTRAP_FORM_GROUP_CLASSES to an empty string to make this an empty div.