Sha256: e4591aa8be1109460d1b49a838d98109a537eeb4aae4d346cd1204d6a0861dcc
Contents?: true
Size: 1.63 KB
Versions: 1
Compression:
Stored size: 1.63 KB
Contents
module WithPopup module Helpers module FormTagHelper include WithPopup::Helpers::Util def submit_with_popup_tag(value = 'Save changes', options = {}) add_with_popup_option_to!(options) submit_tag(value, options) end def image_submit_with_popup_tag(source, options = {}) add_with_popup_option_to!(options) image_submit_tag(source, options) end def button_with_popup_tag(content_or_options = nil, options = {}, &block) add_with_popup_option_to!(options) button_tag(content_or_options, options, &block) end def button_with_popup_to(name = nil, options = nil, html_options = {}, &block) add_with_popup_option_to!(html_options) button_to(name, options, html_options, &block) end def link_with_popup_to(name = nil, options = nil, html_options = {}, &block) add_with_popup_option_to!(html_options) link_to(name, options, html_options, &block) end def link_with_popup_to_if(condition, name, options = {}, html_options = {}, &block) add_with_popup_option_to!(html_options) link_to_if(condition, name, options, html_options, &block) end def link_with_popup_to_unless(condition, name, options = {}, html_options = {}, &block) add_with_popup_option_to!(html_options) link_to_unless(condition, name, options, html_options, &block) end def link_with_popup_to_unless_current(name, options = {}, html_options = {}, &block) add_with_popup_option_to!(html_options) link_to_unless_current(name, options, html_options, &block) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
with_popup-0.1.0 | lib/with_popup/helpers/form_tag_helper.rb |