1
0
Fork 0
mirror of https://github.com/heartcombo/simple_form.git synced 2022-11-09 12:19:26 -05:00
Commit graph

19 commits

Author SHA1 Message Date
Rafael Mendonça França
70fee33b50 Put a whitespace before the inline_label if it is present 2014-03-28 18:36:35 -03:00
Rafael Mendonça França
81516dc4a8 Add boolean_label_class config
This config is to make possible to change the class of the label that
wrap the input in a boolean input.

Before this change we always use 'checkbox'. Now the default is still
'checkbox' but it can set to nil
2014-03-12 17:09:02 -03:00
Vasiliy Ermolovich
fbaddffd89 input without additional classes should add "checkbox" class to label
closes #809
2013-06-29 14:09:36 +03:00
Renato Mascarenhas
34312c9fbc Use 1.9 hash style on code and docs. 2013-01-28 19:02:59 -02:00
Vasiliy Ermolovich
9503f8e6a4 add ability to specify checked and uncked values for boolean input
closes #643
2012-09-04 22:28:58 +03:00
Amiel Martin
a094034926 Boolean hidden field uses name when :nested
Closes #619
2012-07-13 09:47:17 -08:00
Gray Manley
0c017e9efb If inline_label opt is true use default label text
Have the inline label text be set to the default
label text if the inline_label config is true.
2012-04-30 00:34:40 -05:00
Rafael Mendonça França
10592d36bf Fix CHANGELOG 2012-03-02 12:11:06 -03:00
Eric Hochberger
a1d8a72712 changelog and test 2012-03-01 10:35:36 -05:00
Timur Vafin
8f800a72d0 Add extra "checkbox" class to label with nested style enabled using :label_input in wrapper config 2012-02-04 01:58:06 +04:00
Carlos Antonio da Silva
9bea76bfb9 Make sure disabled boolean input will generate a disabled hidden as well 2012-01-30 16:46:38 -02:00
Carlos Antonio da Silva
fb0360d50a Make boolean input tag generate valid html5 when using nested style
This keeps Rails functionality by adding the required hidden checkbox
which will send an "unchecked value" when checkbox is not checked.
2012-01-30 16:46:37 -02:00
Carlos Antonio da Silva
12850f848e Fix boolean nested style bootstrap integration 2012-01-30 11:18:31 -02:00
Carlos Antonio da Silva
51a816e904 Generate label with text and options for boolean nested 2012-01-27 09:32:19 -02:00
Carlos Antonio da Silva
1b2a4b043d Fix nested style check for options hash 2012-01-26 15:44:13 -02:00
Carlos Antonio da Silva
a6c5d8f1d6 Rename checkbox_style to boolean_style to make it more generic 2012-01-26 15:37:41 -02:00
Carlos Antonio da Silva
32952b9132 Add checkbox_style config, to opt for :inline or :nested 2012-01-26 11:30:08 -02:00
Carlos Antonio da Silva
961f5f577e Strip extra spaces from class html attribute 2012-01-26 10:58:34 -02:00
José Valim
cc72315703 Break inputs_test.rb into many files as well. 2011-09-08 16:04:36 +02:00