Commit Graph

11 Commits

Author SHA1 Message Date
Carlos Antonio da Silva 0b34519df2 Do not generate hidden check box field when using nested boolean style
It is considered invalid markup in HTML5. This will only work in
Rails > 3.2.1 (not released at this time). If you really care that much
about this, please use Rails 3-2-stable branch for now, that contains a
backported fix from master.

Backport commit: 2e5ec3b399
More info in #215
2012-01-27 10:50:45 -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 ec10a9669e Collection radio / check boxes respect :nested boolean style config 2012-01-26 16:17:12 -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
José Valim e8749ae07e Add class default options to avoid has_*? checks. 2011-12-04 13:29:59 +01:00
José Valim 5ee02bdd2c Make required a component. 2011-12-04 13:03:09 +01:00
José Valim 6bf59dd508 Get rid of the enabled/disabled in favor of has_*? syntax. 2011-12-04 12:29:53 +01:00
José Valim 5d6d977fc8 Break up mapping input and also provide an enable API. 2011-09-03 11:13:29 +02:00
José Valim ab60a080b3 Split boolean inputs into their own class so we can change label input order. 2010-07-06 11:24:12 +02:00