Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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