module Golden::Theme::Bootstrap::ModalHelper

Public Instance Methods

bootstrap_modal_close_button() click to toggle source
# File lib/golden/theme/bootstrap/modal_helper.rb, line 42
def bootstrap_modal_close_button
  options = {
    type: 'button',
    name: nil,
    data: { dismiss: 'modal' },
    class: 'btn btn-default'
  }
  button_tag t('helpers.close'), options
end
bootstrap_modal_close_icon() click to toggle source
# File lib/golden/theme/bootstrap/modal_helper.rb, line 52
def bootstrap_modal_close_icon
  options = {
    type: 'button',
    name: nil,
    data: { dismiss: 'modal' },
    class: 'close'
  }
  button_tag '×'.html_safe, options
end