Class: ODDB::View::Companies::UnknownCompanyComposite

Inherits:
HtmlGrid::Composite show all
Defined in:
src/view/companies/company.rb

Constant Summary

COMPONENTS =
{
  [0,0,0] =>  :company_name,
  [0,0,1] =>  :ean13,
  [0,1]   => View::Companies::UnknownCompanyInnerComposite,  
  [1,1]   => View::,
}
COLSPAN_MAP =
{
  [0,0] =>  2,
}
CSS_CLASS =
'composite'
CSS_MAP =
{
  [0,0] =>  'th',
  [1,1] =>  'logo right',
}
LEGACY_INTERFACE =
false

Instance Method Summary (collapse)

Methods inherited from HtmlGrid::Composite

event_link, #hash_insert_col, #hash_insert_row

Instance Method Details

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



435
436
437
# File 'src/view/companies/company.rb', line 435

def company_name(model, session=@session)
  name = HtmlGrid::Value.new('name', model, session, self)
end

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



438
439
440
441
442
# File 'src/view/companies/company.rb', line 438

def ean13(model, session=@session)
  if(model.ean13)
    " - "+model.ean13
  end
end