Official repository of the bootstrap_form gem, a Rails form builder that makes it super easy to create beautiful-looking forms using Bootstrap 5.
MIT License
Bot releases are hidden (Show)
Adds Rails 7.1.1+ to the test matrix, and upgrades the demo/test app to Rails 7.1.1. Miscellaneous fixes.
Full Changelog: https://github.com/bootstrap-ruby/bootstrap_form/compare/v5.3.2...v5.4.0
Published by donv about 1 year ago
Full Changelog: https://github.com/bootstrap-ruby/bootstrap_form/compare/v5.3.1...v5.3.2
Published by donv about 1 year ago
Full Changelog: https://github.com/bootstrap-ruby/bootstrap_form/compare/v5.3.0...v5.3.1
Published by donv about 1 year ago
:default
to :vertical
by @donv in https://github.com/bootstrap-ruby/bootstrap_form/pull/694
bootstrap_fields_for
and bootstrap_fields
form helpers. by @donv in https://github.com/bootstrap-ruby/bootstrap_form/pull/699
Calling << to an ActiveModel::Errors
deprecation warning by @dannytip in https://github.com/bootstrap-ruby/bootstrap_form/pull/690
input
by @jdufresne in https://github.com/bootstrap-ruby/bootstrap_form/pull/695
multiple
attribute for checkbox collection hidden field. by @donv in https://github.com/bootstrap-ruby/bootstrap_form/pull/698
Full Changelog: https://github.com/bootstrap-ruby/bootstrap_form/compare/v5.2.3...v5.3.0
Published by donv over 1 year ago
Published by donv over 1 year ago
Full Changelog: https://github.com/bootstrap-ruby/bootstrap_form/compare/v5.2.1...v5.2.2
Closed issues
Published by donv over 1 year ago
Full Changelog: https://github.com/bootstrap-ruby/bootstrap_form/compare/v5.2.0...v5.2.1
Closed issues
Published by donv over 1 year ago
concat
to <<
since the buffer no longer supports the former by @donv in https://github.com/bootstrap-ruby/bootstrap_form/pull/652
net-http
by @lcreid in https://github.com/bootstrap-ruby/bootstrap_form/pull/650
concat
when not necessary by @lcreid in https://github.com/bootstrap-ruby/bootstrap_form/pull/660
docker-compose.yml
and better documentation by @lcreid in https://github.com/bootstrap-ruby/bootstrap_form/pull/647
Full Changelog: https://github.com/bootstrap-ruby/bootstrap_form/compare/v5.1.0...v5.2.0
Closed issues
Published by donv over 1 year ago
generate_validation_failed
method to not override help text by @antpaw inFull Changelog: https://github.com/bootstrap-ruby/bootstrap_form/compare/v5.0.0...v5.1.0
Closed issues: 2021-11-12...2022-06-25
Published by lcreid almost 3 years ago
Published by lcreid over 4 years ago
Published by lcreid over 4 years ago
prepend
and append
options - @donv.default_layout
so we can use it for all forms - @duleorlovic.Published by lcreid about 5 years ago
Published by lcreid almost 6 years ago
Published by lcreid almost 6 years ago
🚨 This release adds support for Bootstrap v4 and drops support for Bootstrap v3. 🚨
If your app uses Bootstrap v3, you should continue using bootstrap_form 2.7.x instead.
Bootstrap v3 and v4 are very different, and thus bootstrap_form now produces different markup in order to target v4. The changes are too many to list here; you can refer to Bootstrap's Migrating to v4 page for a detailed explanation.
In addition to these necessary markup changes, the bootstrap_form API itself has the following important changes in this release.
div.form-check
wrapper for check boxes and radio buttons - @lcreid.button
, submit
, and primary
helpers can now receive an additional option, extra_class
. This option allows us to specify additional CSS classes to be added to the corresponding button/input, while maintaining the original default ones. E.g., a primary button with an extra_class
'test-button' will have its final CSS classes declaration as 'btn btn-primary test-button'.Published by mattbrictson over 6 years ago
🚨 This release adds support for Bootstrap v4 and drops support for Bootstrap v3. 🚨
If your app uses Bootstrap v3, you should continue using bootstrap_form 2.7.x instead.
Bootstrap v3 and v4 are very different, and thus bootstrap_form now produces different markup in order to target v4. The changes are too many to list here; you can refer to Bootstrap's Migrating to v4 page for a detailed explanation.
In addition to these necessary markup changes, the bootstrap_form API itself has the following important changes in this release.
nested_form
gem has been completely removedicon
option is no longer supported (Bootstrap v4 does not include icons)check_boxes_collection
and radio_buttons_collection
have been removedhide_label: true
and skip_label: true
on individual check boxes and radio buttons apply Bootstrap 4 markup. This means the appearance of a page may change if you're upgrading from the Bootstrap 3 version of bootstrap_form
, and you used check_box
or radio_button
with either of those optionsstatic_control
will no longer properly show error messages. This is the result of bootstrap changes.static_control
will also no longer accept a block, use the value
option instead.form_group
with a block that produces arbitrary text needs to be modified to produce validation error messages (see the UPGRADE-4.0 document). @lcreid.form_group
with a block that contains more than one check_box
or radio_button
needs to be modified to produce validation error messages (see the UPGRADE-4.0 document). @lcreid.for
attribute when passing non-english characters using collection_check_boxes
- @ug0..row
in .form-group
. bootstrap_form
adds .row
to div.form-group
when layout is horizontal.form_with
- @lcreid.custom: true
option_html
suffix on the key - @unikitty37
:html
subkeys in help text - @jsaraiva.label_as_placeholder
option, which will set the label text as an input fields placeholder (and hiding the label for sr_only)..form-row
overrides default .form-group.row
in horizontal layouts.submit
(and primary
, by transitivity) form tag helper, render_as_button
, which when truthy makes the submit button render as a button instead of an input. This allows you to easily provide further styling to your form submission buttons, without requiring you to reinvent the wheel and use the button
helper (and having to manually insert the typical Bootstrap classes). - @jsaraiva.:error_message
option to check_box
and radio_button
, so they can output validation error messages if needed. @lcreid.id
to specify for
attribute on labelPublished by mattbrictson almost 8 years ago
There are no user-facing changes with this release. Behind the scenes, the tests have been greatly improved. The project is now tested against and compatible with the following Rails versions 4.0, 4.1, 4.2 and 5.0 (#278).