Sha256: 99a578be67b3c0478b1a22ff1717e532071baa2d46d85c3595b04ff9c4cf73d2
Contents?: true
Size: 453 Bytes
Versions: 8
Compression:
Stored size: 453 Bytes
Contents
require 'bh/helpers/form/base_helper' module Bh module Form module LegendHelper include BaseHelper def legend(value, options = {}) append_class! options, 'sr-only' if inline_form? text = content_tag :legend, value, options text = content_tag :div, text, class: 'col-sm-12' if horizontal_form? text = label_and_field_container(text, :legend) unless inline_form? text end end end end
Version data entries
8 entries across 8 versions & 1 rubygems