Module: Bh::Form::FieldsetHelper

Includes:
BaseHelper, PanelHelper
Included in:
FieldsForHelper, Bh::FormBuilder
Defined in:
lib/bh/helpers/form/fieldset_helper.rb

Instance Method Summary collapse

Methods included from PanelHelper

#panel

Methods included from GlyphiconHelper

#glyphicon

Instance Method Details

#fieldset(title = nil, &block) ⇒ Object



9
10
11
12
13
# File 'lib/bh/helpers/form/fieldset_helper.rb', line 9

def fieldset(title = nil, &block)
  options = {tag: :fieldset, body: @template.capture(&block)}
  options[:heading] = title if title.present? && !inline_form?
  panel options
end