Class: ODDB::View::Admin::PatinfoPreviewComposite

Inherits:
Drugs::PatinfoComposite show all
Defined in:
src/view/admin/patinfopreview.rb

Constant Summary

COLSPAN_MAP =
{
  [0,1] => 2,
}
COMPONENTS =
{
  [0,0] =>  :patinfo_name,
  [1,0] =>  :company,
  [0,1] =>  :document,
}
CSS_MAP =
{
  [0,0] => 'th',
  [1,0] => 'th right',
}

Constants inherited from Drugs::PatinfoComposite

COLSPAN_MAP, COMPONENTS, COMPONENT_CSS_MAP, CSS_CLASS, CSS_MAP, DEFAULT_CLASS

Instance Method Summary (collapse)

Methods inherited from Drugs::PatinfoComposite

#document_composite

Methods included from Print

#print, #print_edit

Methods inherited from HtmlGrid::Composite

event_link, #hash_insert_col, #hash_insert_row

Instance Method Details

- (Object) document(model, session)



23
24
25
# File 'src/view/admin/patinfopreview.rb', line 23

def document(model, session)
  document_composite(model, session)
end

- (Object) patinfo_name(model, session)



26
27
28
# File 'src/view/admin/patinfopreview.rb', line 26

def patinfo_name(model, session)
  @lookandfeel.lookup(:patinfo_name, model.name)
end