Module: Golden::Theme::Bootstrap::ModalHelper
- Defined in:
- lib/golden/theme/bootstrap/modal_helper.rb
Instance Method Summary collapse
- #bootstrap_modal_close_button ⇒ Object
- #bootstrap_modal_close_icon ⇒ Object
- #bootstrap_modal_edit_link_to(url, modal_id, options = {}) ⇒ Object
- #bootstrap_modal_open_iconed_link_to(text, url, modal_id, options = {}) ⇒ Object
- #bootstrap_modal_open_link_to(text, url, modal_id, options = {}) ⇒ Object
Instance Method Details
#bootstrap_modal_close_button ⇒ Object
42 43 44 45 46 47 48 49 50 |
# File 'lib/golden/theme/bootstrap/modal_helper.rb', line 42 def = { type: 'button', name: nil, data: { dismiss: 'modal' }, class: 'btn btn-default' } t('helpers.close'), end |
#bootstrap_modal_close_icon ⇒ Object
52 53 54 55 56 57 58 59 60 |
# File 'lib/golden/theme/bootstrap/modal_helper.rb', line 52 def bootstrap_modal_close_icon = { type: 'button', name: nil, data: { dismiss: 'modal' }, class: 'close' } '×'.html_safe, end |
#bootstrap_modal_edit_link_to(url, modal_id, options = {}) ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/golden/theme/bootstrap/modal_helper.rb', line 29 def bootstrap_modal_edit_link_to url, modal_id, = {} = { remote: true, data: { toggle: 'modal', target: modal_id, type: 'html' }, class: 'modal-open btn btn-default' }.deep_merge bootstrap_link_to_edit url, end |
#bootstrap_modal_open_iconed_link_to(text, url, modal_id, options = {}) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/golden/theme/bootstrap/modal_helper.rb', line 16 def bootstrap_modal_open_iconed_link_to text, url, modal_id, = {} = { remote: true, data: { toggle: 'modal', target: modal_id, type: 'html' }, class: 'modal-open' }.deep_merge bootstrap_iconed_link_to text, url, end |
#bootstrap_modal_open_link_to(text, url, modal_id, options = {}) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/golden/theme/bootstrap/modal_helper.rb', line 3 def bootstrap_modal_open_link_to text, url, modal_id, = {} = { remote: true, data: { toggle: 'modal', target: modal_id, type: 'html' }, class: 'modal-open' }.deep_merge link_to text, url, end |