Sha256: 6468a4d43a5453441edf00731bd6efc040d76008545384f1ee1852ad15ec17dc
Contents?: true
Size: 696 Bytes
Versions: 1
Compression:
Stored size: 696 Bytes
Contents
# TODO See if this can be refactored to make use of some of the Choices code. module FormtasticBootstrap module Inputs class BooleanInput < Formtastic::Inputs::BooleanInput include Base def to_html control_group_wrapping do control_label_html << hidden_field_html << controls_wrapping do label_with_nested_checkbox end end end def label_with_nested_checkbox builder.label( method, label_text_with_embedded_checkbox, label_html_options.tap do |options| options[:class] << "checkbox" end ) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
formtastic-bootstrap-2.0.0 | lib/formtastic-bootstrap/inputs/boolean_input.rb |