Module: ODDB::View::Companies::NewCompany

Included in:
RootCompaniesComposite, RootEmptyResultForm
Defined in:
src/view/companies/companylist.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) new_company(model, session = @session)



74
75
76
77
78
79
# File 'src/view/companies/companylist.rb', line 74

def new_company(model, session=@session)
  button = HtmlGrid::Button.new(:new_company, model, @session, self)
  href = "location.href='#{@lookandfeel._event_url(:new_company)}'"
  button.set_attribute('onClick', href)
  button
end