Class: ODDB::View::DescriptionList

Inherits:
FormList show all
Defined in:
src/view/descriptionlist.rb

Direct Known Subclasses

Admin::CommercialFormsList, Admin::GalenicForms, Admin::GalenicGroupsList, Admin::IndicationList, TestDescriptionList::StubDescriptionList

Constant Summary

CSS_CLASS =
'composite'
COMPONENTS =
{
  [0,0] => :description
}
DEFAULT_HEAD_CLASS =
'subheading'
SORT_HEADER =
false
SORT_DEFAULT =
:description
STRIPED_BG =
true

Instance Method Summary (collapse)

Instance Method Details

- (Object) description(model, session)



18
19
20
21
22
23
24
# File 'src/view/descriptionlist.rb', line 18

def description(model, session)
  klass = self::class::SYMBOL_MAP[:description]
  klass ||= HtmlGrid::Value
  component = klass.new(:description, model, session, self)
  component.value = model.description(@lookandfeel.language)
  component
end