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