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

Version Path
bh-1.1.1 lib/bh/helpers/form/legend_helper.rb
bh-1.1.0 lib/bh/helpers/form/legend_helper.rb
bh-1.0.1 lib/bh/helpers/form/legend_helper.rb
bh-1.0.0 lib/bh/helpers/form/legend_helper.rb
bh-0.0.8 lib/bh/helpers/form/legend_helper.rb
bh-0.0.7 lib/bh/helpers/form/legend_helper.rb
bh-0.0.6 lib/bh/helpers/form/legend_helper.rb
bh-0.0.5 lib/bh/helpers/form/legend_helper.rb