Skip to content
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

Combine class arguments of render_field with Bootstrap classes #159

Merged
merged 4 commits into from Sep 20, 2021

Conversation

greyli
Copy link
Member

@greyli greyli commented Sep 20, 2021

It supports to use class argument when using render_field:

{{ render_field(form.username, class="myClass") }}

Bootstrap-Flask now combines the class you passed or the class value of render_kw with Bootstrap classes:

<input class="form-control myClass" id="username" name="username"

This PR also fixes the issue that keyword arguments are not passed to BooleanField.

Related to #155 and #156.

@greyli greyli merged commit 7029588 into master Sep 20, 2021
@greyli greyli deleted the field-classes branch September 20, 2021 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant