2010-01-09 15:05:02 +00:00
|
|
|
module SimpleForm
|
|
|
|
module Inputs
|
|
|
|
class HiddenInput < Base
|
2011-12-04 12:29:59 +00:00
|
|
|
disable :label, :errors, :hint, :required
|
|
|
|
|
2011-09-02 21:34:02 +00:00
|
|
|
def input
|
2010-01-09 15:05:02 +00:00
|
|
|
@builder.hidden_field(attribute_name, input_html_options)
|
|
|
|
end
|
2010-09-27 02:53:06 +00:00
|
|
|
|
2011-09-03 09:13:29 +00:00
|
|
|
private
|
2010-09-27 02:53:06 +00:00
|
|
|
|
|
|
|
def required_class
|
|
|
|
nil
|
|
|
|
end
|
2010-01-09 15:05:02 +00:00
|
|
|
end
|
|
|
|
end
|
2010-09-27 02:21:30 +00:00
|
|
|
end
|