No commit activity in last 3 years
No release in over 3 years
Replace <label> with <fieldset> and <legend> inside your simple_form.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0.0
~> 1.6
>= 0
~> 3.0
~> 1.3.11

Runtime

>= 4.0
 Project Readme

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