Sha256: 19b087a25c94dbf2e8a0a2bd00f34ce1003eb80bca59428f65f767e02c012fb2
Contents?: true
Size: 452 Bytes
Versions: 3
Compression:
Stored size: 452 Bytes
Contents
class DateTimeInput < SimpleForm::Inputs::DateTimeInput 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 def input_html_classes super.unshift("small") end end
Version data entries
3 entries across 3 versions & 1 rubygems