Skip to content
Newer
Older
100644 226 lines (182 sloc) 12 KB
da92c45 @rafaelfranca Release 2.0.0.rc
rafaelfranca authored Feb 1, 2012
1 ## 2.0.0.rc
c25d6c8 Update CHANGELOG
Rafael Mendonça França authored Dec 3, 2011
2
3 ### enhancements
4 * Add `button_class` configuration to change the class of buttons. ([@sryche](https://github.com/sryche))
5 * Add `disabled` class to a disabled input.
6 * Generate configuration file with `browser_validations` disabled.
7 * Add option and configuration to specify the collection wrapper class. ([@mfila](https://github.com/mfila))
8 * Add proc support to `collection` option. ([@jeffkreeftmeijer](https://github.com/jeffkreeftmeijer))
9 * `simple_form_for` allows default options for its inputs `:defaults => {}`.
10 * Add `readonly` as option of input method. ([@Untainted123](https://github.com/Untainted123))
11 * `simple_fields_for` for inherits wrapper option form the form builder. ([@nashby](https://github.com/nashby))
12 * Use action prefix in the form css class. Closes [#360](https://github.com/plataformatec/simple_form/issues/360).
13 This is not backward compatible with the previous versions of SimpleForm.
14 For more informations see [this comment](https://github.com/plataformatec/simple_form/issues/360#issuecomment-3000780).
15 ([@nashby](https://github.com/nashby))
cc5fd25 Add readonly component. Closes #378
Rafael Mendonça França authored Dec 4, 2011
16 * Add a readonly component that does automatically readonly lookup from object
2409933 @carlosantoniodasilva Update CHANGELOG
carlosantoniodasilva authored Jan 5, 2012
17 * Add support for proc or lambda as option for format validator ([@nashby](https://github.com/nashby))
18 * Handle validates_length_of :is option in maxlength ([@nashby](https://github.com/nashby))
2d44322 @carlosantoniodasilva Changelog
carlosantoniodasilva authored Jan 10, 2012
19 * Add field_with_hint css class to the wrapper when the input has a hint, similar to field_with_errors ([@nashby](https://github.com/nashby))
c5db89c @rafaelfranca Use default format at CHANGELOG
rafaelfranca authored Jan 24, 2012
20 * Add :grouped_select input type, mapping to Rails grouped_collection_select helper ([@semaperepelitsa](https://github.com/semaperepelitsa))
21 * Add automatic translation of options for collection inputs given a collection of symbols ([@klobuczek](https://github.com/klobuczek))
7521f03 @carlosantoniodasilva Some docs and changelog [ci skip]
carlosantoniodasilva authored Jan 26, 2012
22 * Add `:boolean_style` config to change how check boxes and radios will be displayed.
23 Options are `:inline = input + label` (default) and `:nested = label > input`.
24 * Add possibility to give a block to `collection_radio` and `collection_check_boxes`,
25 to generate custom label and input structure. It is used internally with the :nested
26 option for `:boolean_style`, and is useful to allow some more customization if required.
0b34519 @carlosantoniodasilva Do not generate hidden check box field when using nested boolean style
carlosantoniodasilva authored Jan 27, 2012
27 * Do not generate hidden check box field when using nested boolean style, as it is considered
fb0360d @carlosantoniodasilva Make boolean input tag generate valid html5 when using nested style
carlosantoniodasilva authored Jan 30, 2012
28 invalid markup in HTML5. This will work by default in Rails > 3.2.1 (not released at this time),
29 and is backported inside SimpleForm builder extensions.
0b34519 @carlosantoniodasilva Do not generate hidden check box field when using nested boolean style
carlosantoniodasilva authored Jan 27, 2012
30 More info in [#215](https://github.com/plataformatec/simple_form/issues/215)
634c443 @carlosantoniodasilva Deprecate :radio input type and collection_radio helper, update chang…
carlosantoniodasilva authored Jan 27, 2012
31 * Add `item_wrapper_class` configuration option for collection radio buttons / check boxes inputs.
c25d6c8 Update CHANGELOG
Rafael Mendonça França authored Dec 3, 2011
32
f36ec7b Update CHANGELOG
Rafael Mendonça França authored Dec 4, 2011
33 ### deprecation
f67bdbb @rafaelfranca Remove error_notification_id configuration
rafaelfranca authored Feb 3, 2012
34 * Deprecate part of the old configuration API in favor of the wrapper API which allows you to customize your inputs
35 in a more flexible way. See [this guide](https://github.com/plataformatec/simple_form/wiki/Upgrading-to-Simple-Form-2.0)
36 to know how upgrade.
f36ec7b Update CHANGELOG
Rafael Mendonça França authored Dec 5, 2011
37 * Deprecate the `translate` configuration in favor of `translate_labels`
38 * Deprecate the `html5` configuration in favor of a new `html5` component
634c443 @carlosantoniodasilva Deprecate :radio input type and collection_radio helper, update chang…
carlosantoniodasilva authored Jan 27, 2012
39 * Deprecate `:radio` input type in favor of `:radio_buttons`
40 * Deprecate `collection_radio` form helper in favor of `collection_radio_buttons`
41 (the label class has changed as well)
f67bdbb @rafaelfranca Remove error_notification_id configuration
rafaelfranca authored Feb 3, 2012
42 * Remove `error_notification_id` configuration
f36ec7b Update CHANGELOG
Rafael Mendonça França authored Dec 5, 2011
43
c25d6c8 Update CHANGELOG
Rafael Mendonça França authored Dec 3, 2011
44 ### bug fix
45 * Fix i18n lookup with attributes with same name of models.
46 Closes [#149](https://github.com/plataformatec/simple_form/issues/149)
47 and [#364](https://github.com/plataformatec/simple_form/issues/364).
48 ([@nashby](https://github.com/nashby) and [@MarceloCajueiro](https://github.com/MarceloCajueiro))
49 * Do not generate `for` attribute for the collection label when it is a checkbox or radio.
50 Closes [#344](https://github.com/plataformatec/simple_form/issues/344).
51 ([@nashby](https://github.com/nashby) and [@mfila](https://github.com/mfila))
52 * Select can have required option when the `:include_blank` option is passed.
53 Closes [#340](https://github.com/plataformatec/simple_form/issues/340). ([@nashby](https://github.com/nashby))
54 * `:checked` option should override the existing associations on `collection_check_boxes`.
55 Closes [#341](https://github.com/plataformatec/simple_form/issues/341). ([@nashby](https://github.com/nashby))
2409933 @carlosantoniodasilva Update CHANGELOG
carlosantoniodasilva authored Jan 5, 2012
56 * Move default attribute translations out of root - use "defaults" key instead
c5db89c @rafaelfranca Use default format at CHANGELOG
rafaelfranca authored Jan 24, 2012
57 Closes [#384](https://github.com/plataformatec/simple_form/issues/384). ([@fringd](https://github.com/fringd))
c25d6c8 Update CHANGELOG
Rafael Mendonça França authored Dec 3, 2011
58
59 ## 1.5.2
60
61 ### bug fix
62 * Remove the internal usage of deprecated `:components`
63
64 ## 1.5.1
65
66 ### deprecation
67 * `:components` options is now deprecated
68
69 ### bug fix
70 * Fallback to default label when block is provided. ([@pivotal-casebook](https://github.com/pivotal-casebook))
71 * Do not override default selection through attribute value in collection select when label/value methods are lambdas.
72
73 ## 1.5.0
74
75 ### enhancements
76 * Simplified generator by using directory action. ([@rupert654](https://github.com/rupert654))
77 * Support for `maxlength` on string inputs inferred from validation. ([@srbartlett](https://github.com/srbartlett))
78 * Change form css class handling to only add the dom class when one is not given to the form call.
79 ([@patrick99e99](https://github.com/patrick99e99))
80 * Support for required attributes when action validations are present. ([@csegura](http://github.com/csegura))
81 * Do not generate `size` attribute for numeric input. ([@csegura](https://github.com/jasonmp85))
82 * Support for `maxlength` on text area inputs inferred from validation.
83 * Support for `pattern` on text field inferred from validation when `:pattern` is true.
84 * Break Text, Password and File into their own inputs.
85 * Support easy enabling and disabling of components for specific inputs.
86 * Add HTML5 range input.
87
88 ### bug fix
89 * Fix bug when `simple_fields_for` is used with a hash like models and Rails 3.1.
90 * Fix bug that does not remove the `:item_wrapper_tag` or the `:collection_wrapper_tag` on collection
91 inputs when nil or false value is passed to these options. ([@dw2](https://gitbub.com/dw2))
92 * Fix bug that disable the entire select and wrapper when `disabled` option is a string or array.
93 * Fix bug when using label/value methods as procs together with disabled/selected options as procs for select inputs.
94
95 ## 1.4.2
96
97 ### enhancements
98 * Rails 3.1 support.
99
100 ## 1.4.1
101
102 ### enhancements
103 * ignore required attribute when conditional validations are present.
104
105 ### bug fix
106 * Do not use `required='required'` when browser validations are turned off.
107 * Sanitize HMTL attributes in error and hint helpers when options are present.
108 * Improve i18n lookup by ignoring explicit child index given to form builder.
109 (tests by [@rywall](https://github.com/rywall))
110 * Fixes the form specific validation option if specified on the form itself. ([@medihack](https://github.com/medihack))
111
112 ## 1.4.0
113
114 ### enhancements
115 * Add label class configuration option. ([@reu](http://github.com/reu))
116 * Improve i18n lookup (labels/hints/placeholders) for nested models.
117 * Use the given custom builder with `simple_fields_for`. ([@giniedp](https://github.com/giniedp))
118 * Add slim form generator. ([@fagiani](https://github.com/fagiani))
119 * Add `form_class` configuration option. ([@fagiani](https://github.com/fagiani))
120 * Default step of `any` for number input with non integer attributes. ([@fedesoria](https://github.com/fedesoria))
121 * Add option to disable HTML5 browser validations on all forms. ([@coryschires](https://github.com/coryschires))
122 * Add option to disable all HTML5 extensions. ([@wolframarnold](https://github.com/wolframarnold))
123 * Add `input_field` helper to form builder. ([@jeroenhouben](https://github.com/jeroenhouben))
124 * Allow inputs to be discovered on demand by placing them at app/inputs (a la formtastic).
125 * Add `full_error` on that shows the error with the attribute name.
126
127 ### bug fix
128 * Fix for file attributes automatic detection, to work with virtual attributes.
129 * Fix for numeric fields validation options using symbols and procs.
130 * Fix password attributes to add `size` and `maxlength` options the same way as string. ([@fedesoria](https://github.com/fedesoria))
131 * Fix bug with custom form builders and new mappings being added to the superclass builder. ([@rdvdijk](https://github.com/rdvdijk))
132 * Fix HTML validation issue with `collection_check_boxes`.
133
134 ## 1.3.1
135
136 ### enhancements
137 * Add `:autofocus` HTML5 attribute support. ([@jpzwarte](https://github.com/jpzwarte))
138 * Add possibility to specify custom builder and inherit mappings. ([@rejeep](https://github.com/rejeep))
139 * Make custom mappings work with all attributes types. ([@rafaelfranca](https://github.com/rafaelfranca))
140 * Add support for procs/lambdas in text/value methods for `collection_select`.
141
142 ### deprecation
143 * removed the deprecated `:remote_form_for`
144
145 ### bug fix
146 * Only add the `required` HTML 5 attribute for valid inputs, disable in selects (not allowed).
147 * Fix error when using hints without an attribute.
148 ([@butsjoh](https://github.com/butsjoh) and [@rafaelfranca](https://github.com/rafaelfranca))
149 * Fix messy html output for hint, error and label components.
150 ([@butsjoh](https://github.com/butsjoh) and [@rafaelfranca](https://github.com/rafaelfranca))
151 * Allow direct setting of for attribute on label. ([@Bertg](https://github.com/Bertg))
152
153 ## 1.3.0
154
155 ### enhancements
156 * Allow collection input to accept a collection of symbols.
157 * Add default css class to button.
158 * Allow forms for objects that do not respond to the `errors` method.
159 * `collection_check_boxes` and `collection_radio` now wrap the input in the label.
160 * Automatic add min/max values for numeric attributes based on validations and step for integers - HTML5.
161 ([@dasch](https://github.com/dasch))
162 * Add `:placeholder` option for string inputs, allowing customization through I18n - HTML5.
163 ([@jonathan](https://github.com/jonathan))
164 * Add `:search` and `:tel` input types, with `:tel` mapping automatically from attributes matching "phone" - HTML5.
165 * Add `:required` html attribute for required inputs - HTML5.
166 * Add optional `:components` option to input to control component rendering. ([@khoan](https://github.com/khoan))
167 * Add `SimpleForm.translate` as an easy way to turn off SimpleForm internal translations.
168 * Add `:disabled` option for all inputs. ([@fabiob](https://github.com/fabiob))
169 * Add collection wrapper tag and item wrapper tag to wrap elements in collection helpers - radio / check boxes.
170 * Add `SimpleForm.input_mappings` to allow configuring custom mappings for inputs. ([@TMaYaD](https://github.com/TMaYaD))
171
172 ### bug fix
173 * Search for validations on both association and attribute.
174 * Use `controller.action_name` to lookup action only when available, to fix issue with Rspec views tests.
175 ([@rafaelfranca](https://github.com/rafaelfranca))
176
177 ## 1.2.2
178
179 ### enhancements
180 * Compatibility with Rails 3 RC.
181
182 ## 1.2.1
183
184 ### enhancements
185 * Added haml generator support. ([@grimen](https://github.com/grimen))
186 * Added `error_notification` message to form builder.
187 * Added required by default as configuration option.
188 * Added `label_input` as component, allowing boolean to change its order (input appearing first than label).
189 * Added `error_method` to tidy up how errors are exhibited.
190 * Added error class on wrappers. ([@jduff](https://github.com/jduff))
191 * Changed numeric types to have `type=number` for HTML5.
192
193 ## 1.2.0
194
195 ### deprecation
196 * Changed `simple_form_install` generator to `simple_form:install`.
197
198 ### enhancements
199 * Added support to presence validation to check if attribute is required or not. ([@gcirne](https://github.com/gcirne))
200 * Added `input` as class to wrapper tag.
201 * Added config options for hint and error tags. ([@tjogin](https://github.com/tjogin))
202
203 ## 1.1.3
204
205 ### deprecation
206 * removed `:conditions`, `:order`, `:joins` and `:include` support in `f.association`.
207
208 ## 1.1.2
209
210 ### bug fix
211 * Ensure type is set to "text" and not "string".
212
213 ## 1.1.1
214
215 ### bug fix
216 * Fix some escaping issues.
217
218 ## 1.1.0
219
220 ### enhancements
221 * Rails 3 support with generators, templates and HTML 5.
222
223 ## 1.0
224
225 * First release.
Something went wrong with that request. Please try again.