Module: BootstrapLeather::ModalsHelper

Included in:
ApplicationHelper
Defined in:
app/helpers/bootstrap_leather/modals_helper.rb

Overview

Modals, i.e. content box that pops up over main document, shading out the background

Instance Method Summary collapse

Instance Method Details



7
8
9
10
11
12
13
14
15
16
17
18
# File 'app/helpers/bootstrap_leather/modals_helper.rb', line 7

def modal(id, title = '', close_text = 'Close', html_options = {}, &block)
  render(
    partial: 'bootstrap_leather/modals/modal',
    locals: {
      id: id,
      close_text: close_text,
      title: title,
      block: capture(&block),
      html_options: html_options
    }
  )
end