3.3 KiB
3.3 KiB
master
enhancements
input_field
uses the same wrapper as input but only with attribute components. @nashby- Add wrapper mapping per form basis @rcillo and @bernardoamc
- New
input_class
global config option to set a class to be generated in all inputs. input_field
supportshtml5
component @nashby- Add
include_default_input_wrapper_class
config @luizcosta - Add
boolean_label_class
config.
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 - Use the given name in
input_html
for the hidden field incollection_check_boxes
@angelic - 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
2.1.1
bug fix
- Fix XSS vulnerability on label, hint and error components.
2.1.0
enhancements
input_field
supports components that don't generate tags as:min_max
,:maxlength
,:placeholder
,:pattern
,:readonly
. Closes #362. (@nashby)- support for Rails eager loading. Closes #478.
- generate required attribute for
date_time
input. (@nashby) Closes #730. grouped_collection_select
now accepts proc/lambda as label and value method. (@svendahlstrand) Closes #623.- Add Zurb Foundation 3 integration. (@balexand)
- Generates additional wrapper class based on object + attribute name. (@lucasmazza) Closes #576.
- Allow
input_field
to work with:defaults
options. (@smidwap)
bug fix
- Do not lookup for hints if it was explicitly given false.
After #405 we added hint classes for the wrappers, but this has forced the
loading of the hint text doing I18n lookups, even though it was explicitly
given false. This checks for the option in
#has_hint?
, avoiding the lookup in such cases. This issues has been caught with #627, thanks to (@shwoodard). - Fix default I18n lookup for association input. (@nashby) Closes #679.
- Fix escaping issue in
label_input
component (@allomov)
Please check v2.0 for previous changes.