Skip to content

HTTPS clone URL

Subversion checkout URL

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