2014-12-26 18:41:19 +00:00
## master
### bug fix
* `date/time/datetime` inputs now correctly generate the label `for` attribute when
HTML5 compatibility is explicitly enabled. [@ericsullivan ](https://github.com/ericsullivan )
2014-11-25 17:53:40 +00:00
## 3.1.0
2014-10-12 22:35:05 +00:00
### enhancements
* Update foundation generator to version 5. [@jorge-d ](https://github.com/jorge-d )
2014-07-08 00:14:49 +00:00
* Add mapping to `uuid` columns.
2014-06-26 21:34:02 +00:00
* Add custom namespaces for custom inputs feature. [@vala ](https://github.com/vala )
2014-06-23 19:49:04 +00:00
* Add `:unless_blank` option to the wrapper API. [@IanVaughan ](https://github.com/IanVaughan )
2014-04-04 17:49:18 +00:00
* Add support to html markup in the I18n options. [@laurocaetano ](https://github.com/laurocaetano )
2014-04-03 15:08:29 +00:00
* Add the `full_error` component. [@laurocaetano ](https://github.com/laurocaetano )
2014-04-02 17:43:34 +00:00
* Add support to `scope` to be used on associations. [@laurocaetano ](https://github.com/laurocaetano )
2014-04-01 14:57:42 +00:00
* Execute the association `condition` in the object context. [@laurocaetano ](https://github.com/laurocaetano )
2014-03-31 18:44:02 +00:00
* Check if the given association responds to `order` before calling it. [@laurocaetano ](https://github.com/laurocaetano )
2014-03-31 18:06:26 +00:00
* Add Bootstrap 3 initializer template.
2013-12-09 13:53:58 +00:00
* 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 )
2013-11-24 15:11:05 +00:00
* `input_field` uses the same wrapper as input but only with attribute components. [@nashby ](https://github.com/nashby )
2013-11-13 15:18:54 +00:00
* Add wrapper mapping per form basis [@rcillo ](https://github.com/rcillo ) and [@bernardoamc ](https://github.com/bernardoamc )
2013-11-18 20:38:48 +00:00
* 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 )
2013-11-12 22:18:52 +00:00
* Add `include_default_input_wrapper_class` config [@luizcosta ](https://github.com/luizcosta )
2013-11-13 20:25:41 +00:00
* Map `datetime` , `date` and `time` input types to their respective HTML5 input tags
2013-11-27 00:58:46 +00:00
when the `:html5` is set to `true` [@volmer ](https://github.com/volmer )
2014-03-12 20:09:02 +00:00
* Add `boolean_label_class` config.
2014-04-02 22:58:17 +00:00
* Add `:html` option to include additional attributes on custom wrappers [@remofritzsche ](https://github.com/remofritzsche ) and [@ulissesalmeida ](https://github.com/ulissesalmeida )
2014-03-14 21:50:57 +00:00
* 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.
2014-03-31 17:01:48 +00:00
* Put a whitespace before the `inline_label` options of boolean input if it is present.
2014-04-02 22:58:17 +00:00
* Add support to configure the `label_text` proc at the wrapper level. [@NOX73 ](https://github.com/NOX73 )
2014-04-02 23:10:35 +00:00
* `label_text` proc now receive three arguments (label, request, and if the label was explicit). [@timscott ](https://github.com/timscott )
2014-04-03 18:27:45 +00:00
* Add I18n support to `:include_blank` and `:prompt` when `:translate` is used as value. [@haines ](https://github.com/plataformatec/simple_form/pull/616 )
2014-04-03 21:32:02 +00:00
* Add support to define custom error messages for the attributes.
2014-04-04 14:59:38 +00:00
* Add support to change the I18n scope to be used in Simple Form. [@nielsbuus ](https://github.com/nielsbuus )
2014-07-23 22:06:13 +00:00
* The default form class can now be overridden with `html: { :class }` . [@rmm5t ](https://github.com/rmm5t )
2013-11-13 15:18:54 +00:00
2013-11-03 11:19:52 +00:00
### bug fix
2014-11-25 17:53:40 +00:00
* Fix `full_error` when the attribute is an association. [@mvdamme ](https://github.com/jorge-d )
* Fix suppport to `:namespace` and `:index` options for nested check boxes and radio buttons when the attribute is an association.
2013-12-31 19:31:17 +00:00
* 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 )
2013-11-03 11:19:52 +00:00
* Collection input generates `required` attribute if it has `prompt` option. [@nashby ](https://github.com/nashby )
2014-04-02 18:38:40 +00:00
* Grouped collection uses the first non-empty object to detect label and value methods.
2013-11-03 11:19:52 +00:00
2014-03-14 14:52:20 +00:00
## deprecation
2014-03-21 17:31:08 +00:00
* Methods on custom inputs now accept a required argument with the wrapper options.
2014-03-14 14:52:20 +00:00
See https://github.com/plataformatec/simple_form/pull/997 for more information.
2014-11-19 16:30:35 +00:00
* SimpleForm.form_class is deprecated in favor of SimpleForm.default_form_class.
Future versions of Simple Form will not generate `simple_form` class for the form
element.
2014-07-23 22:06:13 +00:00
See https://github.com/plataformatec/simple_form/pull/1109 for more information.
2014-03-14 14:52:20 +00:00
2014-04-14 14:29:45 +00:00
Please check [v3.0 ](https://github.com/plataformatec/simple_form/blob/v3.0/CHANGELOG.md ) for previous changes.