Class: ODDB::View::Doctors::DoctorInnerComposite

Inherits:
HtmlGrid::Composite show all
Defined in:
src/view/doctors/doctor.rb

Constant Summary

COMPONENTS =
{
  [0,0]   => :specialities_header,
  [0,1]   =>  :specialities,
  [0,2]   => :capabilities_header,
  [0,3]   =>  :capabilities,
  [0,4,0] =>  :language_header,
  [0,4,1] =>  :nbsp,
  [0,4,2] =>  :correspondence,
  [0,5,0] =>  :exam_header,
  [0,5,1] =>  :nbsp,
  [0,5,2] =>  :exam,
  [0,6,0] =>  :ean13_header,
  [0,6,1] =>  :nbsp,
  [0,6,2] =>  :ean13,
  [0,7,0] =>  :email_header_doctor,
  [0,7,1] =>  :nbsp,
  [0,7,2] =>  :email,
}
SYMBOL_MAP =
{
  :address_email  => HtmlGrid::MailLink,
  :capabilities_header => HtmlGrid::LabelText,
  :email  => HtmlGrid::MailLink,
  :email_header_doctor    =>  HtmlGrid::LabelText,
  :exam_header    =>  HtmlGrid::LabelText,
  :ean13_header   => HtmlGrid::LabelText,
  :language_header  => HtmlGrid::LabelText,
  :nbsp           => HtmlGrid::Text,
  :phone_label    =>  HtmlGrid::Text,
  :fax_label      => HtmlGrid::Text,
  :specialities_header => HtmlGrid::LabelText,
  :url            =>  HtmlGrid::HttpLink,
  :url_header     =>  HtmlGrid::LabelText,
  :work_header    =>  HtmlGrid::LabelText,
}
CSS_MAP =
{
  [0,0,4,8] =>  'list',
}
DEFAULT_CLASS =
HtmlGrid::Value
LEGACY_INTERFACE =
false

Instance Method Summary (collapse)

Methods inherited from HtmlGrid::Composite

event_link, #hash_insert_col, #hash_insert_row

Instance Method Details

- (Object) capabilities(model)



80
81
82
83
# File 'src/view/doctors/doctor.rb', line 80

def capabilities(model)
  spc = model.capabilities
  spc.join('<br>') unless spc.nil?
end

- (Object) specialities(model)



76
77
78
79
# File 'src/view/doctors/doctor.rb', line 76

def specialities(model)
  spc = model.specialities
  spc.join('<br>') unless spc.nil?
end