-
-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It seemed that render_kw in render_form is not working on the "class" property. #53
Comments
Since we need to add Bootstrap classes when calling this macro in the template, the old class defined with {{ render_form(form, button_map={'submit': 'primary'}) }} It maps the field name to the Bootstrap button style, the value can be something like |
@greyli Is it possible to append the |
https://github.com/greyli/bootstrap-flask/blob/9ca1e7f0a2d3233d781f23da23ad919901a09183/flask_bootstrap/templates/bootstrap/form.html#L235
My code here:
The return is quite confusing:
And it seemed that render_form is not passing the render_kw of the SubmitField to the rendered html. This made me confused.
The text was updated successfully, but these errors were encountered: