bootstrap_form

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

Downloads
24.4M
Stars
1.6K
Committers
98

Bot releases are hidden (Show)

bootstrap_form - v5.4.0 Latest Release

Published by lcreid 12 months ago

Adds Rails 7.1.1+ to the test matrix, and upgrades the demo/test app to Rails 7.1.1. Miscellaneous fixes.

What's Changed

New features

  • Rails 7.1. No changes in functionality, but added Rails 7.1 to the test matrix and upgraded the demo/test app (#708).

Bugfixes

  • Do not alias rich text area if it is not defined (#709).
  • Fix joins not to make strings unsafe (#704).

Performance

Documentation

Development

  • Changes to the experimental Docker development environment. (#712, #710).

Full Changelog: https://github.com/bootstrap-ruby/bootstrap_form/compare/v5.3.2...v5.4.0

Closed issues

New Contributors

  • @BenMorganMY made their first contribution in #709.
bootstrap_form - v5.3.2

Published by donv about 1 year ago

bootstrap_form - v5.3.1

Published by donv about 1 year ago

Bugfix release

  • Allow settings conditional presence validators using symbols.

Full Changelog: https://github.com/bootstrap-ruby/bootstrap_form/compare/v5.3.0...v5.3.1

Closed issues

bootstrap_form - v5.3.0

Published by donv about 1 year ago

What's Changed

New features

Bugfixes

Performance

Documentation

Development

Closed issues

Closed issues

New Contributors

Full Changelog: https://github.com/bootstrap-ruby/bootstrap_form/compare/v5.2.3...v5.3.0

bootstrap_form - 5.2.2

Published by donv over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/bootstrap-ruby/bootstrap_form/compare/v5.2.1...v5.2.2
Closed issues

bootstrap_form - 5.2.1

Published by donv over 1 year ago

bootstrap_form - 5.2.0

Published by donv over 1 year ago

What's Changed

New features

Bugfixes

Development

New Contributors

Full Changelog: https://github.com/bootstrap-ruby/bootstrap_form/compare/v5.1.0...v5.2.0
Closed issues

bootstrap_form - 5.1.0

Published by donv over 1 year ago

What's Changed

New features

Bugfixes

Documentation

New Contributors

Full Changelog: https://github.com/bootstrap-ruby/bootstrap_form/compare/v5.0.0...v5.1.0
Closed issues: 2021-11-12...2022-06-25

bootstrap_form - 5.0.0

Published by lcreid almost 3 years ago

Breaking changes

  • Generates markup for Bootstrap 5.

New features

  • #572: Simplify the formatting of the file upload control to follow the new Bootstrap 5 styles
  • #573: Add support for Bootstrap 5's floating labels

Bugfixes

  • #582: Fix tests in bootstrap-5 branch, removes Rubocop offenses, and adds testing with Rails 6.1.
bootstrap_form - 4.5.0

Published by lcreid over 4 years ago

New features

bootstrap_form - 4.4.0

Published by lcreid over 4 years ago

New features

  • #557: Allow prepending and appending multiple items to an input by passing an array to prepend and append options - @donv.
  • #550: Add default_layout so we can use it for all forms - @duleorlovic.

Bugfixes

  • Your contribution here!
bootstrap_form - 4.3.0

Published by lcreid about 5 years ago

New features

  • [#503] Support Rails 6.0.0.
  • Small documentation changes.
bootstrap_form - 4.2.0

Published by lcreid over 5 years ago

New features

  • [#508] Support rich_text_area AKA the Trix editor on Rails 6+.
  • [#518] Move all inputs to separate, more maintainable files.
  • #514: Add support for BS 4.2 switches - @simmerz

Bugfixes

bootstrap_form - 4.1.0

Published by lcreid over 5 years ago

New features

  • [#259] Allow to render input without wrapper [@yevhene].

Bugfixes

  • [#496] Ensure required attribute is passed through to input tag.
bootstrap_form - 4.0.0

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.

Breaking changes

New features

  • [#476] Give a way to pass classes to the div.form-check wrapper for check boxes and radio buttons - @lcreid.
  • 461: default form-inline class applied to parent content div on date select helpers. Can override with a :skip_inline option on the field helper - @lancecarlson.
  • The 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'.

Bugfixes

  • #347 Fix wrapper_class and wrapper options for helpers that have html_options.
  • #472 Use id option value as for attribute of label for custom checkboxes and radio buttons.
  • #478 Fix offset for form group without label when multiple label widths are specified.
bootstrap_form - 4.0.0.alpha1

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.

Breaking changes

  • Rails 4.x is no longer supported
  • Ruby 2.2 or newer is required
  • Built-in support for the nested_form gem has been completely removed
  • The icon option is no longer supported (Bootstrap v4 does not include icons)
  • The deprecated Rails methods check_boxes_collection and radio_buttons_collection have been removed
  • hide_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 options
  • static_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.
  • #456: Fix label for attribute when passing non-english characters using collection_check_boxes - @ug0.
  • #449: Bootstrap 4 no longer mixes in .row in .form-group. bootstrap_form adds .row to div.form-group when layout is horizontal.

New features

  • Support for Rails 5.1 form_with - @lcreid.
  • Support Bootstrap v4's Custom Checkboxes and Radios with a new custom: true option
  • Allow HTML in help translations by using the _html suffix on the key - @unikitty37
  • #408: Add option[:id] on static control #245 - @duleorlovic.
  • #455: Support for i18n :html subkeys in help text - @jsaraiva.
  • Adds support for label_as_placeholder option, which will set the label text as an input fields placeholder (and hiding the label for sr_only).
  • #449: Passing .form-row overrides default .form-group.row in horizontal layouts.
  • Added an option to the 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.
  • Add :error_message option to check_box and radio_button, so they can output validation error messages if needed. @lcreid.

Bugfixes

  • #357 if provided,
    use html option id to specify for attribute on label
    @duleorlovic
bootstrap_form - 2.7.0

Published by mattbrictson over 7 years ago

Features:

  • #325: Support :prepend and :append for the select helper - @donv.
bootstrap_form - 2.6.0

Published by mattbrictson over 7 years ago

Bugfixes:

  • None

Features:

  • Add a FormBuilder#custom_control helper #289
bootstrap_form - 2.5.3

Published 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).

Package Rankings
Top 0.85% on Rubygems.org
Badges
Extracted from project README
Ruby Gem Version
Related Projects