Class: ODDB::View::Admin::OrphanedPatinfoAssignComposite

Inherits:
HtmlGrid::Composite show all
Includes:
OrphanedLanguages
Defined in:
src/view/admin/orphaned_patinfo_assign.rb

Constant Summary

COMPONENTS =
{
  [0,1] => :languages,
  [0,2] => View::Admin::SearchFieldPatinfo,
  [0,3] => :sequences
}
CSS_MAP =
{
  [0,0] => 'th',
  [0,1] => 'list',
  [0,2] => 'list'
}
CSS_CLASS =
'composite'
DEFAULT_CLASS =
HtmlGrid::Value
DEFAULT_HEAD_CLASS =
'th'

Instance Method Summary (collapse)

Methods inherited from HtmlGrid::Composite

event_link, #hash_insert_col, #hash_insert_row

Instance Method Details

- (Object) languages(model, session)



77
78
79
80
81
82
83
# File 'src/view/admin/orphaned_patinfo_assign.rb', line 77

def languages(model, session)
  begin 
    super(model.languages, session) 
  rescue NoMethodError => e
    e.message
  end
end

- (Object) sequences(model, session)



74
75
76
# File 'src/view/admin/orphaned_patinfo_assign.rb', line 74

def sequences(model, session)
  View::Admin::OrphanedPatinfoSequences.new(@model.sequences, session, self)
end