You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+15-3Lines changed: 15 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,14 +6,24 @@
6
6
7
7
### New features
8
8
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).
10
9
* Your contribution here!
11
10
12
11
### Bugfixes
13
12
14
13
* Your contribution here!
15
14
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)
17
27
18
28
### New features
19
29
@@ -276,7 +286,9 @@ Features:
276
286
- Added support for bootstrap_form_tag (@baldwindavid)
Copy file name to clipboardExpand all lines: README.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,8 @@ If you use Rails in the default mode without any pre-processor, you'll have to a
55
55
```
56
56
57
57
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
59
60
@import"rails_bootstrap_forms";
60
61
```
61
62
@@ -238,7 +239,8 @@ To add help text, use the `help` option:
238
239
```
239
240
240
241
This generates:
241
-
```
242
+
243
+
```html
242
244
<smallclass="form-text text-muted">Must be at least 6 characters long</small>
243
245
```
244
246
@@ -318,9 +320,9 @@ If you only want to set the class on the form group div, you can use the `wrappe
318
320
319
321
### Suppressing the Form Group Altogether
320
322
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:
322
324
323
-
```
325
+
```ruby
324
326
f.form_group :user do
325
327
f.email_field :email, wrapper: false
326
328
end
@@ -379,6 +381,7 @@ Check boxes and radio buttons are wrapped in a `div.form-check`. You can add cla
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`:
400
403
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.
401
404
402
405
Collection methods accept these options:
406
+
403
407
* `:label`: Customize the `form_group`'s label
404
408
* `:hide_label`: Pass true to hide the `form_group`'s label
405
409
* `:help`: Add a help span to the `form_group`
@@ -522,7 +526,6 @@ will be rendered as
522
526
523
527
If you're using Rails 6, `bootstrap_form` supports the `rich_text_area` helper.
524
528
525
-
526
529
```erb
527
530
<%= f.rich_text_area(:life_story) %>
528
531
```
@@ -853,4 +856,4 @@ document first.
853
856
854
857
## License
855
858
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
0 commit comments