module Golden::Theme::Bootstrap::ModalHelper
Public Instance Methods
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
bootstrap_modal_edit_link_to(url, modal_id, options = {})
click to toggle source
# File lib/golden/theme/bootstrap/modal_helper.rb, line 29 def bootstrap_modal_edit_link_to url, modal_id, options = {} options = { remote: true, data: { toggle: 'modal', target: modal_id, type: 'html' }, class: 'modal-open btn btn-default' }.deep_merge options bootstrap_link_to_edit url, options end
bootstrap_modal_open_iconed_link_to(text, url, modal_id, options = {})
click to toggle source
# File lib/golden/theme/bootstrap/modal_helper.rb, line 16 def bootstrap_modal_open_iconed_link_to text, url, modal_id, options = {} options = { remote: true, data: { toggle: 'modal', target: modal_id, type: 'html' }, class: 'modal-open' }.deep_merge options bootstrap_iconed_link_to text, url, options end
bootstrap_modal_open_link_to(text, url, modal_id, options = {})
click to toggle source
# File lib/golden/theme/bootstrap/modal_helper.rb, line 3 def bootstrap_modal_open_link_to text, url, modal_id, options = {} options = { remote: true, data: { toggle: 'modal', target: modal_id, type: 'html' }, class: 'modal-open' }.deep_merge options link_to text, url, options end