Improve language filter preferences look (#3184)
This commit is contained in:
parent
c2f70829d9
commit
d78f555254
3 changed files with 26 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue