Class: DateTimeInput

Inherits:
SimpleForm::Inputs::DateTimeInput
  • Object
show all
Defined in:
app/inputs/date_time_input.rb

Overview

Copyright © 2008-2013 Michael Dvorkin and contributors.

Fat Free CRM is freely distributable under the terms of MIT license. See MIT-LICENSE file or www.opensource.org/licenses/mit-license.php


Instance Method Summary collapse

Instance Method Details

#input(wrapper_options) ⇒ Object



9
10
11
12
13
14
# File 'app/inputs/date_time_input.rb', line 9

def input(wrapper_options)
  add_autocomplete!
  input_html_options.merge(input_options)
  input_html_options[:value] = value
  @builder.text_field(attribute_name, merge_wrapper_options(input_html_options, wrapper_options))
end

#label_targetObject



16
17
18
# File 'app/inputs/date_time_input.rb', line 16

def label_target
  attribute_name
end