Module: Lipsiadmin::View::Helpers::DateHelper

Defined in:
lib/view/helpers/view_helper.rb

Instance Method Summary collapse

Instance Method Details

#ext_date_select(object_name, method, options = {}, html_options = {}) ⇒ Object

Returns an ExtJs Calendar

Examples:
  =ext_date_select :post, :created_at


101
102
103
# File 'lib/view/helpers/view_helper.rb', line 101

def ext_date_select(object_name, method, options = {}, html_options = {})
  InstanceTag.new(object_name, method, self, options.delete(:object)).to_ext_date_select_tag(options, html_options)
end

#ext_datetime_select(object_name, method, options = {}, html_options = {}) ⇒ Object

Returns an ExtJs Calendar and a Time selector

Examples:
  =ext_datetime_select :post, :updated_at


110
111
112
# File 'lib/view/helpers/view_helper.rb', line 110

def ext_datetime_select(object_name, method, options = {}, html_options = {})
  InstanceTag.new(object_name, method, self, options.delete(:object)).to_ext_datetime_select_tag(options, html_options)
end