mirror of
https://github.com/heartcombo/simple_form.git
synced 2022-11-09 12:19:26 -05:00
19cb663518
Fixes #1085
41 lines
3.5 KiB
Markdown
41 lines
3.5 KiB
Markdown
## 3.1.0.rc2
|
|
|
|
### enhancements
|
|
* Add mapping to `uuid` columns.
|
|
* Add custom namespaces for custom inputs feature. [@vala](https://github.com/vala)
|
|
* Add `:unless_blank` option to the wrapper API. [@IanVaughan](https://github.com/IanVaughan)
|
|
* Add support to html markup in the I18n options. [@laurocaetano](https://github.com/laurocaetano)
|
|
* Add the `full_error` component. [@laurocaetano](https://github.com/laurocaetano)
|
|
* Add support to `scope` to be used on associations. [@laurocaetano](https://github.com/laurocaetano)
|
|
* Execute the association `condition` in the object context. [@laurocaetano](https://github.com/laurocaetano)
|
|
* Check if the given association responds to `order` before calling it. [@laurocaetano](https://github.com/laurocaetano)
|
|
* Add Bootstrap 3 initializer template.
|
|
* For radio or checkbox collection always use `:item_wrapper_tag` to wrap the content and add `label` when using `boolean_style` with `:nested` [@kassio](https://github.com/kassio) and [@erichkist](https://github.com/erichkist)
|
|
* `input_field` uses the same wrapper as input but only with attribute components. [@nashby](https://github.com/nashby)
|
|
* Add wrapper mapping per form basis [@rcillo](https://github.com/rcillo) and [@bernardoamc](https://github.com/bernardoamc)
|
|
* Add `for` attribute to `label` when collections are rendered as radio or checkbox [@erichkist](https://github.com/erichkist), [@ulissesalmeida](https://github.com/ulissesalmeida) and [@fabioyamate](https://github.com/fabioyamate)
|
|
* Add `include_default_input_wrapper_class` config [@luizcosta](https://github.com/luizcosta)
|
|
* Map `datetime`, `date` and `time` input types to their respective HTML5 input tags
|
|
when the `:html5` is set to `true` [@volmer](https://github.com/volmer)
|
|
* Add `boolean_label_class` config.
|
|
* Add `:html` option to include additional attributes on custom wrappers [@remofritzsche](https://github.com/remofritzsche) and [@ulissesalmeida](https://github.com/ulissesalmeida)
|
|
* Make possible to use the Wrappers API to define attributes for the components.
|
|
See https://github.com/plataformatec/simple_form/pull/997 for more information.
|
|
* Put a whitespace before the `inline_label` options of boolean input if it is present.
|
|
* Add support to configure the `label_text` proc at the wrapper level. [@NOX73](https://github.com/NOX73)
|
|
* `label_text` proc now receive three arguments (label, request, and if the label was explicit). [@timscott](https://github.com/timscott)
|
|
* Add I18n support to `:include_blank` and `:prompt` when `:translate` is used as value. [@haines](https://github.com/plataformatec/simple_form/pull/616)
|
|
* Add support to define custom error messages for the attributes.
|
|
* Add support to change the I18n scope to be used in Simple Form. [@nielsbuus](https://github.com/nielsbuus)
|
|
|
|
### bug fix
|
|
* Collection input that uses automatic collection translation properly sets checked values.
|
|
Closes [#971](https://github.com/plataformatec/simple_form/issues/971) [@nashby](https://github.com/nashby)
|
|
* Collection input generates `required` attribute if it has `prompt` option. [@nashby](https://github.com/nashby)
|
|
* Grouped collection uses the first non-empty object to detect label and value methods.
|
|
|
|
## deprecation
|
|
* Methods on custom inputs now accept a required argument with the wrapper options.
|
|
See https://github.com/plataformatec/simple_form/pull/997 for more information.
|
|
|
|
Please check [v3.0](https://github.com/plataformatec/simple_form/blob/v3.0/CHANGELOG.md) for previous changes.
|