Sha256: 1d4edf3ea88b0a3a8e536157d9fd17d2cd1473528a720cd536b40320613059a3
Contents?: true
Size: 454 Bytes
Versions: 3
Compression:
Stored size: 454 Bytes
Contents
class PasswordInput < SimpleForm::Inputs::PasswordInput 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("xxlarge") end end
Version data entries
3 entries across 3 versions & 1 rubygems