Module: Bh::Form::LegendHelper
Instance Method Summary collapse
Methods included from GlyphiconHelper
Instance Method Details
#legend(value, options = {}) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/bh/helpers/form/legend_helper.rb', line 8 def legend(value, = {}) append_class! , 'sr-only' if inline_form? text = content_tag :legend, value, text = content_tag :div, text, class: 'col-sm-12' if horizontal_form? text = label_and_field_container(text, :legend) unless inline_form? text end |