4
5
6
7
8
9
10
11
12
13
14
15
16
|
# File 'lib/wcc/styles/simple_form/historical_date_input.rb', line 4
def input(wrapper_options=nil)
input_html_classes.unshift('date')
common_options = {
prefix: object_name,
prompt: "",
}.merge(merge_wrapper_options(input_html_options, wrapper_options))
template.content_tag(:div, class: "row") do
date_select_component(:month, common_options.merge(options[:month_input] || {})) +
date_select_component(:day, common_options.merge(options[:day_input] || {})) +
date_select_component(:year, common_options.merge(options[:year_input] || {}))
end
end
|