Sha256: 1ede1b2641ce018160257480d83c8b2b64e52f3607978563ce6e76b7f7c603a1
Contents?: true
Size: 444 Bytes
Versions: 1
Compression:
Stored size: 444 Bytes
Contents
class BooleanInput < SimpleForm::Inputs::BooleanInput def label_input content = "".html_safe [ :input, :error, :hint ].each do |component| next if options[component] == false rendered = send(component) content.safe_concat rendered.to_s if rendered end (options[:label] == false ? "" : label) + "<div class=\"input\"><ul class=\"inputs-list\"><li><label>#{content}</label></li></ul></div>".html_safe end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bootstrap-generators-0.0.3 | lib/generators/bootstrap/install/templates/app/inputs/boolean_input.rb |