Module: ErpApp::Extensions::Railties::ActionView::Helpers::ActiveExtHelper

Defined in:
lib/erp_app/extensions/railties/action_view/helpers/active_ext_helper.rb

Instance Method Summary collapse

Instance Method Details

#active_ext_close_button(options = {}) ⇒ Object

active_ext helper methods



8
9
10
# File 'lib/erp_app/extensions/railties/action_view/helpers/active_ext_helper.rb', line 8

def active_ext_close_button(options={})
  raw "<input type=\"button\" class=\"#{options[:class]}\" value=\"Close\" onclick=\"parent.Compass.ErpApp.Shared.ActiveExt.closeWindow('#{@model.class.to_s.underscore + "_" + @model.id.to_s}')\" />"
end