All notable changes to this project will be documented in this file.
For more information about changelogs, check Keep a Changelog and Vandamme.
- [BREAKING CHANGE] The
tablemethod doesn't take theheadersparameter anymore. - [FEATURE] New
columnmethod to define headers and body of atableat once
- Remove class "card-row" from card_body
That's because a card body with card-row does not display correct borders for nested cards
- [BREAKING FIXES] Literally everything changed. Moving from Bootstrap 3 to Bootstrap 6.
- [ENHANCEMENT] Bump versions of asset libraries
- [ENHANCEMENT] Replace
errors.get(:field)witherrors[:field]since the former is deprecated in Rails 5.
- [BUGFIX] Security: don’t always assume that the content of
link_tois safe
Note that this might break your code if it relied on the wrong behavior of
Bh, assuming that the content of link_to was always HTML safe.
For instance, if your app has the following code to display an image with a
link link_to '<img src="logo.png">', '/', then the image will not display
anymore, since Bh now correctly escapes the HTML content (as Rails and Padrino
do). In this case, you should use link_to image_tag('logo.png'), '/' instead.
- [BUGFIX] Correctly align the "X" icon at the right of the field in basic forms
- [BUGFIX] Respect the original behavior of Padrino/Rails when calling
link_towithnilas the name
- [BUGFIX] Do not render the
:offsetoption of the field helpers in the DOM - [BUGFIX] Do not render the
:labeloption of the field helpers in the DOM - [ENHANCEMENT] Add
:label_optionsoption to customize the wrapping label of a field
- [FEATURE] Extend
form_forto be wrapped in - when inside a
nav, just likelink_to - [FEATURE] Extend
button_toto be wrapped in - when inside a
nav, just likelink_to - [BUGFIX] Match default placeholder with label content (therefore supporting localization)
- [ENHANCEMENT] Bootstrappify forms wrapped in
navbar, setting their class to "navbar-form" - [ENHANCEMENT] Add
:helpoption to display a help block after most form fields - [ENHANCEMENT] Bump Bootstrap version to 3.3.2
- [ENHANCEMENT] Bump Font Awesome version to 4.3.0
- [FEATURE] Add support for Middleman and Padrino for all helpers except
form_for - [FEATURE] Extend
button_toto accept the same :content, :size and :layout options asbutton - [DEPRECATION] Deprecate
glyphiconin favor oficon(glyphiconwill still work until version 2.0.0) - [BUGFIX] Don’t override
button_tounless:context,:sizeor:layoutis passed - [ENHANCEMENT] Allow
alert_boxto pass extra parameters to the alert box - [ENHANCEMENT] Allow
button_toto pass extra parameters to the button element - [ENHANCEMENT] Allow
dropdownto display a full-width button when called with{layout: :block, groupable: false} - [ENHANCEMENT] Allow
dropdownto pass:idparameter to the dropdown- [ENHANCEMENT] Allow
modalto pass the:idparameter to the wrapping - [ENHANCEMENT] Allow
modalto pass{button: :class}parameter to the toggle - [ENHANCEMENT] Allow
panelto pass extra parameters to the wrapping - [ENHANCEMENT] Allow
progress_barto pass extra parameters to the wrapping container - [ENHANCEMENT] Allow
progress_barto pass extra parameters to each bar - [ENHANCEMENT] Don’t render anything when
verticalandhorizontalare not wrapped in anavbar - [ENHANCEMENT] Wrap plain content passed to
modalinside the modal body - [ENHANCEMENT] Wrap plain content passed to
panelinside the panel body
- [ENHANCEMENT] Bump Bootstrap version to 3.3.0
- [FEATURE] Add
iconhelper - [FEATURE] Add
font_awesome_csshelper - [FEATURE] Add
dropdownhelper - [FEATURE] Add
progress_barhelper - [ENHANCEMENT] Add
:fieldsetoption to decide whetherfields_forshould wrap fields in a tag - [FEATURE] Add
buttonhelper
- [BUGFIX] Remove
form-controlclass fromfile_field(#20) - [BUGFIX] Allow
record_objectto be passed tofields_for(#22)
- No changes
- [FEATURE] Add
button_tohelper - [FEATURE] Add
navbarhelper
- [FEATURE] Add
navhelper
- [FEATURE] Add
:prefix,:suffixoptions to form field helpers
- [FEATURE] Add
form_forand form helpers for every type of field
- [FEATURE] Add
modal - [FEATURE] Add
panel_row - [FEATURE] Add
panel - [FEATURE] Add
glyphicon
- [FEATURE] Add
bootstrap_css,bootstrap_theme_cssandbootstrap_js
- [FEATURE] Add
alert_boxhelper
- [ENHANCEMENT] Allow