2011-04-27 19:26:02 +00:00
|
|
|
class StringInput < SimpleForm::Inputs::StringInput
|
2014-03-10 21:41:36 +00:00
|
|
|
def input(context)
|
2011-04-27 19:26:02 +00:00
|
|
|
"<section>#{super}</section>".html_safe
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class NumericInput < SimpleForm::Inputs::NumericInput
|
2014-03-10 21:41:36 +00:00
|
|
|
def input(context)
|
2011-04-27 19:26:02 +00:00
|
|
|
"<section>#{super}</section>".html_safe
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class CustomizedInput < SimpleForm::Inputs::StringInput
|
2014-03-10 21:41:36 +00:00
|
|
|
def input(context)
|
2011-04-27 19:26:02 +00:00
|
|
|
"<section>#{super}</section>".html_safe
|
|
|
|
end
|
2011-09-08 13:28:28 +00:00
|
|
|
|
2011-04-27 19:26:02 +00:00
|
|
|
def input_method
|
|
|
|
:text_field
|
|
|
|
end
|
2011-09-08 13:28:28 +00:00
|
|
|
end
|
2012-04-22 02:21:36 +00:00
|
|
|
|
|
|
|
class CollectionSelectInput < SimpleForm::Inputs::CollectionSelectInput
|
|
|
|
def input_html_classes
|
|
|
|
super.push('chosen')
|
|
|
|
end
|
|
|
|
end
|