Class: ODDB::Html::View::Drugs::PatinfoComposite
- Inherits:
-
HtmlGrid::DivComposite
- Object
- HtmlGrid::DivComposite
- ODDB::Html::View::Drugs::PatinfoComposite
- Includes:
- Snapback
- Defined in:
- lib/oddb/html/view/drugs/patinfo.rb
Constant Summary collapse
- COMPONENTS =
{ [0,0] => :snapback, [0,1] => InlineSearch, [0,2] => :name, [0,3] => :chapters, [0,4] => :document, }
- CSS_ID_MAP =
[ 'snapback', 'result-search', 'title', 'chapters' ]
- CSS_MAP =
{ 0 => 'before-searchbar' }
Instance Method Summary collapse
Methods included from Snapback
Instance Method Details
#chapters(model) ⇒ Object
27 28 29 30 31 |
# File 'lib/oddb/html/view/drugs/patinfo.rb', line 27 def chapters(model) if((fi = model.patinfo) && (doc = fi.send(@session.language))) ChapterNames.new(:patinfo, doc, @session, self) end end |
#document(model) ⇒ Object
22 23 24 25 26 |
# File 'lib/oddb/html/view/drugs/patinfo.rb', line 22 def document(model) if((fi = model.patinfo) && (doc = fi.send(@session.language))) Document.new(doc, @session, self) end end |