39
40
41
42
43
44
45
46
47
48
|
# File 'app/helpers/railsstrap/date_picker_helper.rb', line 39
def date_picker(options = {})
opts = default_options.merge(options)
input = text_field_tag opts[:input_name], '', class: opts[:input_class]
icon_wrapper = content_tag opts[:icon_wrapper_tag], class: opts[:icon_wrapper_class] do
content_tag :i, '', class: opts[:icon]
end
content_tag(opts[:wrapper_tag], id: opts[:id], class: opts[:wrapper_class], data: opts[:data]) {
opts[:show_input] ? input + icon_wrapper : icon_wrapper
}
end
|