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

#inputObject



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

def input
  add_autocomplete!
  input_html_options.merge(input_options)
  input_html_options.merge!(:value => value)
  @builder.text_field(attribute_name, input_html_options)
end

#label_targetObject



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

def label_target
  attribute_name
end