Skip to content

Replace <div> and <label> with <fieldset> and <legend> inside your simple_form.

License

Notifications You must be signed in to change notification settings

dobtco/simple_form_legend

Repository files navigation

simple_form_legend status

This is an adapter gem which allows you to add a <legend> tag to your Simple Form forms. Since the legend tag is designed to be used in place of the label tag, it inherits the i18n lookups and other HTML options from the label tag.

This library supports Simple Form >= 3.

Usage

Do this in your Gemfile:

gem 'simple_form_legend'

Use b.use :legend instead of b.use :label

config.wrappers :fieldset_wrapper, tag: 'fieldset' do |b|
  b.use :legend
end

License

MIT

About

Replace <div> and <label> with <fieldset> and <legend> inside your simple_form.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages