Class: ODDB::View::Admin::RootActiveAgentComposite

Inherits:
ActiveAgentComposite show all
Includes:
SwissmedicSource
Defined in:
src/view/admin/activeagent.rb

Constant Summary

COMPONENTS =
{
  [0,0] =>  :agent_name,
  [0,1] =>  View::Admin::ActiveAgentForm,
  [0,2] =>  :active_agents,
  [0,3] =>  'th_source',
  [0,4] =>  :source,
}
CSS_MAP =
{
  [0,0] =>  'th',
  [0,3] =>  'subheading',
}

Constants inherited from ActiveAgentComposite

COMPONENTS, CSS_CLASS, CSS_MAP

Instance Method Summary (collapse)

Methods included from SwissmedicSource

#format_source, #package_source, #registration_source, #sequence_source

Methods inherited from ActiveAgentComposite

#agent_name

Methods inherited from HtmlGrid::Composite

event_link, #hash_insert_col, #hash_insert_row

Instance Method Details

- (Object) active_agents(model, session = @session)



89
90
91
# File 'src/view/admin/activeagent.rb', line 89

def active_agents(model, session=@session)
  RootSequenceAgents.new(model.sequence.active_agents, @session, self)
end

- (Object) source(model, session = @session)



92
93
94
95
96
# File 'src/view/admin/activeagent.rb', line 92

def source(model, session=@session)
  val = HtmlGrid::Value.new(:source, model, @session, self)
  val.value = sequence_source(model.sequence) if model
  val
end