2009-12-09 20:48:00 +00:00
|
|
|
module SimpleForm
|
2011-12-04 13:57:12 +00:00
|
|
|
# Components are a special type of helpers that can work on their own.
|
|
|
|
# For example, by using a component, it will automatically change the
|
2011-12-10 17:55:27 +00:00
|
|
|
# output under given circumstances without user input. For example,
|
2011-12-04 13:57:12 +00:00
|
|
|
# the disabled helper always need a :disabled => true option given
|
|
|
|
# to the input in order to be enabled. On the other hand, things like
|
2011-12-10 17:55:27 +00:00
|
|
|
# hints can generate output automatically by doing I18n lookups.
|
2009-12-09 20:48:00 +00:00
|
|
|
module Components
|
2010-11-07 09:41:33 +00:00
|
|
|
autoload :Errors, 'simple_form/components/errors'
|
|
|
|
autoload :Hints, 'simple_form/components/hints'
|
2011-12-04 15:15:27 +00:00
|
|
|
autoload :HTML5, 'simple_form/components/html5'
|
2010-11-07 09:41:33 +00:00
|
|
|
autoload :LabelInput, 'simple_form/components/label_input'
|
|
|
|
autoload :Labels, 'simple_form/components/labels'
|
2011-12-04 15:31:13 +00:00
|
|
|
autoload :MinMax, 'simple_form/components/min_max'
|
2011-12-04 12:14:39 +00:00
|
|
|
autoload :Maxlength, 'simple_form/components/maxlength'
|
2011-12-04 12:40:00 +00:00
|
|
|
autoload :Pattern, 'simple_form/components/pattern'
|
2010-11-07 09:41:33 +00:00
|
|
|
autoload :Placeholders, 'simple_form/components/placeholders'
|
2011-12-05 01:41:54 +00:00
|
|
|
autoload :Readonly, 'simple_form/components/readonly'
|
2009-12-09 20:48:00 +00:00
|
|
|
end
|
2011-08-30 23:51:53 +00:00
|
|
|
end
|