Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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