Parent

Class/Module Index [+]

Quicksearch

DatetimepickerInput

Public Instance Methods

controls_wrapper_html_options() click to toggle source
# File app/inputs/datetimepicker_input.rb, line 17
def controls_wrapper_html_options
super.merge(:class=> " date input-append", 'data-date'.to_sym =>I18n.l(Date.today()).to_s, 'data-date-format'.to_sym=>I18n.t('date.formats.default-picker'))
end
html_options() click to toggle source
# File app/inputs/datetimepicker_input.rb, line 9
def html_options
        super

end
input_html_options() click to toggle source
# File app/inputs/datetimepicker_input.rb, line 2
def input_html_options
        s=super
  value=builder.object.send(method)
  value=I18n.l(value) unless value.nil? 
  super.merge(:class => "datetimepicker",:value=>value)
end
options() click to toggle source
# File app/inputs/datetimepicker_input.rb, line 26
        def options
                super
#d.merge(:class=>"datepicker")
                #super.merge(:append_content=>'<span class="add-on input-append"
                #super.merge(:append_content=>'<span class="add-on" ><i class="icon-th"></i></span>')
        end
to_html() click to toggle source
# File app/inputs/datetimepicker_input.rb, line 20
def to_html
        bootstrap_wrapping do
        builder.text_field(method, input_html_options) +
       '<span class="add-on" ><i class="icon-th"></i></span>'.html_safe()
end
end
wrapper_html_options() click to toggle source
# File app/inputs/datetimepicker_input.rb, line 13
def wrapper_html_options
        super.merge(:class=>"")
        #super.merge(:class=>"datepicker",'date-date-format'.to_sym=>"%d.%m.%Y")
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.