Module: BootstrapHelperized::Helper

Defined in:
lib/bootstrap_helperized/helper.rb

Instance Method Summary collapse

Instance Method Details

#standard_modal_box(options = {}, &block) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/bootstrap_helperized/helper.rb', line 5

def standard_modal_box(options = {}, &block)
  css_id     = options[:id]
  box_title  = options[:title]
  @show_fade = options[:show_fade] || false

  modal_options = { :id => css_id, 
                    :class => class_string, 
                    :role => 'dialog', 
                    :tabindex => '-1' }

   :div, modal_options do
    standard_modal_header(box_title) + standard_modal_content(&block)
  end
end