Skip to content

Commit 68a5e0f

Browse files
committed
Preparing v4.4.0
1 parent c7e283f commit 68a5e0f

File tree

3 files changed

+25
-10
lines changed

3 files changed

+25
-10
lines changed

CHANGELOG.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,24 @@
66

77
### New features
88

9-
* [#557](https://github.com/bootstrap-ruby/bootstrap_form/pull/557): Allow prepending and appending multiple items to an input by passing an array to `prepend` and `append` options - [@donv](https://github.com/donv).
109
* Your contribution here!
1110

1211
### Bugfixes
1312

1413
* Your contribution here!
1514

16-
## [4.3.0][] (2019-03-08)
15+
## [4.4.0][] (2020-03-08)
16+
17+
### New features
18+
19+
* [#557](https://github.com/bootstrap-ruby/bootstrap_form/pull/557): Allow prepending and appending multiple items to an input by passing an array to `prepend` and `append` options - [@donv](https://github.com/donv).
20+
* [#550](https://github.com/bootstrap-ruby/bootstrap_form/pull/550): Add `default_layout` so we can use it for all forms - [@duleorlovic](https://github.com/duleorlovic).
21+
22+
### Bugfixes
23+
24+
* Your contribution here!
25+
26+
## [4.3.0][] (2019-09-22)
1727

1828
### New features
1929

@@ -276,7 +286,9 @@ Features:
276286
- Added support for bootstrap_form_tag (@baldwindavid)
277287

278288

279-
[Pending Release]: https://github.com/bootstrap-ruby/bootstrap_form/compare/v4.2.0...HEAD
289+
[Pending Release]: https://github.com/bootstrap-ruby/bootstrap_form/compare/v4.4.0...HEAD
290+
[4.4.0]: https://github.com/bootstrap-ruby/bootstrap_form/compare/v4.3.0...v4.4.0
291+
[4.3.0]: https://github.com/bootstrap-ruby/bootstrap_form/compare/v4.2.0...v4.3.0
280292
[4.2.0]: https://github.com/bootstrap-ruby/bootstrap_form/compare/v4.1.0...v4.2.0
281293
[4.1.0]: https://github.com/bootstrap-ruby/bootstrap_form/compare/v4.0.0...v4.1.0
282294
[4.0.0]: https://github.com/bootstrap-ruby/bootstrap_form/compare/v4.0.0.alpha1...v4.0.0

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ If you use Rails in the default mode without any pre-processor, you'll have to a
5555
```
5656

5757
If you followed the [official bootstrap installation guide](https://github.com/twbs/bootstrap-rubygem#a-ruby-on-rails), you'll probably have switched to SCSS. In this case add the following line to your `application.scss`:
58-
```
58+
59+
```scss
5960
@import "rails_bootstrap_forms";
6061
```
6162

@@ -238,7 +239,8 @@ To add help text, use the `help` option:
238239
```
239240

240241
This generates:
241-
```
242+
243+
```html
242244
<small class="form-text text-muted">Must be at least 6 characters long</small>
243245
```
244246

@@ -318,9 +320,9 @@ If you only want to set the class on the form group div, you can use the `wrappe
318320

319321
### Suppressing the Form Group Altogether
320322

321-
You may have want to define your own form group div around a field. To do so, add the option `wrapper: false` to the input field. For example:
323+
You may want to define your own form group div around a field. To do so, add the option `wrapper: false` to the input field. For example:
322324

323-
```
325+
```ruby
324326
f.form_group :user do
325327
f.email_field :email, wrapper: false
326328
end
@@ -379,6 +381,7 @@ Check boxes and radio buttons are wrapped in a `div.form-check`. You can add cla
379381
```erb
380382
<%= f.radio_button :skill_level, 0, label: "Novice", inline: true, wrapper_class: "w-auto" %>
381383
```
384+
382385
### Switches
383386

384387
To render checkboxes as switches with Bootstrap 4.2+, use `custom: :switch`:
@@ -400,6 +403,7 @@ To render checkboxes as switches with Bootstrap 4.2+, use `custom: :switch`:
400403
NOTE: These helpers do not currently support a block, unlike their equivalent Rails helpers. See issue [#477](https://github.com/bootstrap-ruby/bootstrap_form/issues/477). If you need to use the block syntax, use `collection_check_boxes_without_bootstrap` or `collection_radio_buttons_without_bootstrap` for now.
401404

402405
Collection methods accept these options:
406+
403407
* `:label`: Customize the `form_group`'s label
404408
* `:hide_label`: Pass true to hide the `form_group`'s label
405409
* `:help`: Add a help span to the `form_group`
@@ -522,7 +526,6 @@ will be rendered as
522526

523527
If you're using Rails 6, `bootstrap_form` supports the `rich_text_area` helper.
524528

525-
526529
```erb
527530
<%= f.rich_text_area(:life_story) %>
528531
```
@@ -853,4 +856,4 @@ document first.
853856

854857
## License
855858

856-
MIT License. Copyright 2012-2019 Stephen Potenza (https://github.com/potenza)
859+
MIT License. Copyright 2012-2020 Stephen Potenza (https://github.com/potenza) and others

lib/bootstrap_form/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module BootstrapForm
2-
VERSION = "4.3.0".freeze
2+
VERSION = "4.4.0".freeze
33
end

0 commit comments

Comments
 (0)