0
0
Fork 0

Improve language filter preferences look (#3184)

This commit is contained in:
Eugen Rochko 2017-05-20 19:42:44 +02:00 committed by GitHub
parent c2f70829d9
commit d78f555254
3 changed files with 26 additions and 3 deletions

View file

@ -57,6 +57,14 @@ SimpleForm.setup do |config|
b.use :error, wrap_with: { tag: :span, class: :error }
end
config.wrappers :with_block_label, class: :input, hint_class: :field_with_hint, error_class: :field_with_errors do |b|
b.use :html5
b.use :label
b.use :hint, wrap_with: { tag: :span, class: :hint }
b.use :input
b.use :error, wrap_with: { tag: :span, class: :error }
end
# The default wrapper to be used by the FormBuilder.
config.default_wrapper = :default