Sha256: cd10d6aa5dec803f682c40b61448315632f8744428c0349bd5b3ad54267505d0
Contents?: true
Size: 384 Bytes
Versions: 1
Compression:
Stored size: 384 Bytes
Contents
class TextInput < SimpleForm::Inputs::TextInput 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\">#{content}</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/text_input.rb |