Class: ODDB::View::Doctors::DoctorForm

Inherits:
Form
  • Object
show all
Includes:
HtmlGrid::ErrorMessage
Defined in:
src/view/doctors/doctor.rb

Constant Summary

COMPONENTS =
{
  [0,0] => :title,
  [0,1] => :name_first,
  [2,1] => :name,
  [0,2] => :specialities,
  [0,3] => :capabilities,
  [0,4] => :correspondence,
  [0,5] => :exam,
  [0,6] => :ean13,
  [0,7] => :email,
  [1,8] => :submit,
}
COLSPAN_MAP =
{
  [1,2] => 3,
  [1,3] => 3,
}
COMPONENT_CSS_MAP =
{
  [0,0] =>  'standard',
  [0,1] =>  'standard',
  [2,1] =>  'standard',
  #[0,2]  => 'standard',
  #[0,3]  => 'standard',
  [0,4] =>  'standard',
  [0,5] =>  'standard',
  [0,6] =>  'standard',
  [0,7] =>  'standard',
}
CSS_MAP =
{
  [0,0,4,8] =>  'list',
  [0,2,1,2] =>  'list top',
}
LABELS =
true
LEGACY_INTERFACE =
false

Constants included from FormMethods

ACCEPT_CHARSET, DEFAULT_CLASS, EVENT

Instance Method Summary (collapse)

Methods included from FormMethods

#delete_item, #delete_item_warn, #get_event_button, #post_event_button

Instance Method Details

- (Object) capabilities(model)



124
125
126
127
128
# File 'src/view/doctors/doctor.rb', line 124

def capabilities(model)
  input = HtmlGrid::Textarea.new(:capabilities, model, @session, self)
  input.label = true
  input
end

- (Object) init



120
121
122
123
# File 'src/view/doctors/doctor.rb', line 120

def init
  super
  error_message
end

- (Object) specialities(model)



129
130
131
132
133
# File 'src/view/doctors/doctor.rb', line 129

def specialities(model)
  input = HtmlGrid::Textarea.new(:specialities, model, @session, self)
  input.label = true
  input
end