Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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