Module: Bh::Form::FieldsetHelper

Includes:
BaseHelper, Helpers
Included in:
FieldsForHelper
Defined in:
lib/bh/core_ext/rails/form/fieldset_helper.rb

Instance Method Summary collapse

Methods included from Helpers

#alert_box, #bootstrap_css, #bootstrap_js, #bootstrap_theme_css, #button, #button_to, #dropdown, #font_awesome_css, #glyphicon, #horizontal, #icon, #link_to, #modal, #nav, #navbar, #panel, #panel_row, #progress_bar, #vertical

Instance Method Details

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



9
10
11
12
13
# File 'lib/bh/core_ext/rails/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