Class: ODDB::View::Admin::GalenicGroupComposite

Inherits:
HtmlGrid::Composite show all
Defined in:
src/view/admin/galenicgroup.rb

Constant Summary

COMPONENTS =
{
  [0,0] =>  'galenic_group',
  [0,1] =>  GalenicGroupForm,
  [0,2] =>  :galenic_forms,
}
CSS_CLASS =
'composite'
CSS_MAP =
{
  [0,0] =>  'th',
}

Instance Method Summary (collapse)

Methods inherited from HtmlGrid::Composite

event_link, #hash_insert_col, #hash_insert_row

Instance Method Details

- (Object) galenic_forms(model, session)



53
54
55
56
57
58
59
60
61
# File 'src/view/admin/galenicgroup.rb', line 53

def galenic_forms(model, session)
  forms = if(galforms = model.galenic_forms)
    galforms.values
  else
    []
  end
  mdl = PointerArray.new(forms, model.pointer)
  View::Admin::GalenicForms.new(mdl, session, self) unless model.is_a?(Persistence::CreateItem)
end