Change generated template.
This commit is contained in:
parent
8b53c49979
commit
8d62740fc0
|
@ -1,20 +1,16 @@
|
|||
# Use this setup block to configure all options available in SimpleForm.
|
||||
SimpleForm.setup do |config|
|
||||
# Components used by the form builder to generate a complete input. You can remove
|
||||
# any of them, change the order, or even add your own components to the stack.
|
||||
# config.components = [ :placeholder, :label_input, :hint, :error ]
|
||||
|
||||
# Default tag used on hints.
|
||||
# config.hint_tag = :span
|
||||
|
||||
# CSS class to add to all hint tags.
|
||||
# config.hint_class = :hint
|
||||
|
||||
# CSS class used on errors.
|
||||
# config.error_class = :error
|
||||
|
||||
# Default tag used on errors.
|
||||
# config.error_tag = :span
|
||||
# Components are used by the form builder to generate a complete input.
|
||||
# You can remove any of them, change the order or even add your own
|
||||
# components to the stack. The options given to the components method
|
||||
# are used by the wrapper input. You can remove them (to remove the wrapper)
|
||||
# or change them as needed.
|
||||
config.components :tag => :div, :class => :input, :error_class => :field_with_errors do |b|
|
||||
b.use :placeholder
|
||||
b.use :label_input
|
||||
b.use :hint, :tag => :span, :class => :hint
|
||||
b.use :error, :tag => :span, :class => :error
|
||||
end
|
||||
|
||||
# Method used to tidy up errors.
|
||||
# config.error_method = :first
|
||||
|
@ -28,15 +24,6 @@ SimpleForm.setup do |config|
|
|||
# ID to add for error notification helper.
|
||||
# config.error_notification_id = nil
|
||||
|
||||
# You can wrap all inputs in a pre-defined tag.
|
||||
# config.wrapper_tag = :div
|
||||
|
||||
# CSS class to add to all wrapper tags.
|
||||
# config.wrapper_class = :input
|
||||
|
||||
# CSS class to add to the wrapper if the field has errors.
|
||||
# config.wrapper_error_class = :field_with_errors
|
||||
|
||||
# You can wrap a collection of radio/check boxes in a pre-defined tag, defaulting to none.
|
||||
# config.collection_wrapper_tag = nil
|
||||
|
||||
|
|
Loading…
Reference in New Issue