class DatepickerInput < SimpleForm::Inputs::StringInput
  def input(wrapper_options = nil)
    placeholder = options.delete(:placeholder) || 'Click to choose a date'

    input_html_options[:data] ||= {}
    input_html_options[:data][:datepicker] = true
    input_html_options[:placeholder] = placeholder
    input_html_options[:autocomplete] = 'off'

    super
  end
end

class DatepickerInput < SimpleForm::Inputs::StringInput
  def input(wrapper_options = nil)
    placeholder = options.delete(:placeholder) || 'Click to choose a date'

    input_html_options[:data] ||= {}
    input_html_options[:data][:datepicker] = true
    input_html_options[:data][:blank] = options.delete(:blank)
    input_html_options[:placeholder] = placeholder
    input_html_options[:autocomplete] = 'off'

    super
  end
end

Add blank option to datepicker inputs
Add blank option to datepicker inputs
