aboutsummaryrefslogtreecommitdiffstats
path: root/app/inputs/boolean_input.rb
diff options
context:
space:
mode:
authorAlban Peignier2015-05-22 09:55:56 +0200
committerAlban Peignier2015-05-22 09:55:56 +0200
commitcf631225e96227395cc0f852e73ad83bc7aaf06b (patch)
tree89e811e719b67c1a7d22c5d85556f6d4526b3e52 /app/inputs/boolean_input.rb
parent5d4413c208f7e0fcb86a2c4e464025c5ab37d159 (diff)
downloadchouette-core-cf631225e96227395cc0f852e73ad83bc7aaf06b.tar.bz2
Revert "Revert label boolean css and formtastic input"
This reverts commit 5d4413c208f7e0fcb86a2c4e464025c5ab37d159.
Diffstat (limited to 'app/inputs/boolean_input.rb')
-rw-r--r--app/inputs/boolean_input.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/app/inputs/boolean_input.rb b/app/inputs/boolean_input.rb
index da23c3b93..a2b9b92ca 100644
--- a/app/inputs/boolean_input.rb
+++ b/app/inputs/boolean_input.rb
@@ -1,9 +1,9 @@
class BooleanInput < Formtastic::Inputs::BooleanInput
- # def label_with_nested_checkbox
- # builder.label(
- # method,
- # label_text,
- # label_html_options.merge(class: "label")
- # ) << "" << check_box_html
- # end
+ def label_with_nested_checkbox
+ builder.label(
+ method,
+ label_text,
+ label_html_options.merge(class: "label")
+ ) << "" << check_box_html
+ end
end