Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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