aboutsummaryrefslogtreecommitdiffstats
path: root/app/inputs/boolean_input.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/inputs/boolean_input.rb')
-rw-r--r--app/inputs/boolean_input.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/inputs/boolean_input.rb b/app/inputs/boolean_input.rb
new file mode 100644
index 000000000..a2b9b92ca
--- /dev/null
+++ b/app/inputs/boolean_input.rb
@@ -0,0 +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
+end