mirror of
https://github.com/heartcombo/simple_form.git
synced 2022-11-09 12:19:26 -05:00
c333ea7273
Conflicts: CHANGELOG.md
3.4 KiB
3.4 KiB
master
enhancements
- For radio or checkbox collection always use
:item_wrapper_tag
to wrap the content and addlabel
when usingboolean_style
with:nested
@kassio and @erichkist input_field
uses the same wrapper as input but only with attribute components. @nashby- Add wrapper mapping per form basis @rcillo and @bernardoamc
- Add
for
attribute tolabel
when collections are rendered as radio or checkbox @erichkist, @ulissesalmeida and @fabioyamate - Add
include_default_input_wrapper_class
config @luizcosta - Map
datetime
,date
andtime
input types to their respective HTML5 input tags when the:html5
is set totrue
@volmer - Add
boolean_label_class
config. - Add
:html
option to include additional attributes on custom wrappers remofritzsche and @ulissesalmeida
bug fix
- Collection input that uses automatic collection translation properly sets checked values. Closes #971 @nashby
- Collection input generates
required
attribute if it hasprompt
option. @nashby
3.0.1
bug fix
- Fix XSS vulnerability on label, hint and error components.
3.0.0
enhancements
- New
input_class
global config option to set a class to be generated in all inputs. - Collection tags accept html attributes as the last element of collection @nashby
- Change default
:value_method
of collection tags from:last
to:second
@nashby - Support
Proc
object in:conditions
option of associations @bradly input_field
supportshtml5
component @nashby- Make
field_error_proc
configurable @dfens - Support to Rails 4.
- Removed deprecated methods.
- SimpleForm no longer sets the
size
attribute automatically and thedefault_input_size
setting is now deprecated. - Support to aria-required attribute to required fields @ckundo
bug fix
- Make
DateTimeInput#label_target
method to work with string values inI18n.t('date.order')
(default behaviour in Rails 4) Closes #846 @mjankowski - Add "checkbox" class to the label of boolean input when there is no
:label
ingenerate_additional_classes_for
config option @nashby - Support models with digits in their names @webgago
- Remove deprecation warnings related to
Relation#all
from Rails 4. - Form builder can be used outside the context of a controller @jasonwebster
- Skip pattern attribute when using
validates_format_of
with:without
option @glebm
Please check v2.1 for previous changes.