Class: ODDB::View::Drugs::MiniFiComposite

Inherits:
HtmlGrid::Composite show all
Defined in:
src/view/drugs/minifi.rb

Constant Summary

COMPONENTS =
{
  [0,0] =>  :name,
  [0,1] =>  :document,
}
CSS_MAP =
{
  [0,0] => 'th',
  [0,1] => 'list',
}
LEGACY_INTERFACE =
false

Instance Method Summary (collapse)

Methods inherited from HtmlGrid::Composite

event_link, #hash_insert_col, #hash_insert_row

Instance Method Details

- (Object) document(model)



56
57
58
59
60
# File 'src/view/drugs/minifi.rb', line 56

def document(model)
  if(chapter = model.send(@session.language))
    MiniFiChapter.new(model, @session, self)
  end
end

- (Object) name(model)



61
62
63
64
# File 'src/view/drugs/minifi.rb', line 61

def name(model)
  cname = (reg = model.registrations.first) ? reg.company_name : nil
  @lookandfeel.lookup(:minifi_name, model.name, cname)
end