Class: ODDB::View::Admin::RootSequenceForm

Inherits:
HtmlGrid::Form
  • Object
show all
Includes:
FormMethods
Defined in:
src/view/admin/sequence.rb

Constant Summary

TAG_METHOD =
:multipart_form
COMPONENTS =
{
  [0,0] =>  View::Admin::SequenceForm,
  [0,1] =>  'composition',
  [0,2] =>  :composition_text,
  [0,3] =>  'active_agents',
  [0,4] =>  :compositions,
}
CSS_MAP =
{
  [0,1] =>  'subheading',
  [0,3] =>  'subheading',
}
SYMBOL_MAP =
{
  :composition_text => HtmlGrid::Textarea,
}
COMPONENT_CSS_MAP =
{
  [0,2] => 'huge',
}

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) compositions(model, session = @session)



559
560
561
# File 'src/view/admin/sequence.rb', line 559

def compositions(model, session=@session)
  RootCompositions.new(model.compositions, @session, self)
end

- (Object) hidden_fields(context)



562
563
564
# File 'src/view/admin/sequence.rb', line 562

def hidden_fields(context)
  super << context.('patinfo', 'keep')
end