AutoCommit Fre Jul 17 13:03:05 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-07-17 13:03:05 +02:00
parent 353bbc145f
commit 0e9525af81
5 changed files with 108 additions and 80 deletions

View File

@@ -0,0 +1,28 @@
class CheckboxAutocompleteInput < FormtasticBootstrap::Inputs::CheckboxInput
def input_html_options
super
#super.merge(:class => "input-append date")
end
def html_options
super
#super.merge(:default => Date.today)
end
def wrapper_html_options
super.merge(:class=>"")
#super.merge(:class=>"datepicker",'date-date-format'.to_sym=>"%d.%m.%Y")
end
def controls_wrapper_html_options
super.merge(:class=> "datepicker 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
def to_html
bootstrap_wrapping do
builder.text_field(method, input_html_options) + 'sdf'
end
end
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
end