diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-20 19:42:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-20 19:42:44 +0200 |
commit | d78f5552547b5175770dbfbefeff73e426da980d (patch) | |
tree | 51c05609abe475517fc2221b1adc21196e186fb8 /config/initializers/simple_form.rb | |
parent | c2f70829d9dc1afcc4bbad4aadb21e5053e1fb71 (diff) |
Improve language filter preferences look (#3184)
Diffstat (limited to 'config/initializers/simple_form.rb')
-rw-r--r-- | config/initializers/simple_form.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config/initializers/simple_form.rb b/config/initializers/simple_form.rb index 60bbcb778..ca7531748 100644 --- a/config/initializers/simple_form.rb +++ b/config/initializers/simple_form.rb @@ -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 |