Class: ODDB::View::Admin::ActiveAgentForm

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

Constant Summary

COMPONENTS =
{
  [0,0]   => :substance,
  [2,0]   => :dose,
  [4,0]   => :spagyric_dose,
  [0,1]   => :chemical_substance,
  [2,1]   => :chemical_dose,
  [0,2]   => :equivalent_substance,
  [2,2]   => :equivalent_dose,
  [1,3,0] =>  :submit,
  [1,3,1] =>  :delete_item,
  [1,4]   => :new_active_agent_button,
}
COMPONENT_CSS_MAP =
{
  [0,0,8,3] =>  'standard',
}
CSS_MAP =
{
  [0,0,8,6] =>  'list',
}
LABELS =
true

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) init



52
53
54
55
# File 'src/view/admin/activeagent.rb', line 52

def init
  super
  error_message()
end

- (Object) new_active_agent_button(model, session)



56
57
58
59
60
# File 'src/view/admin/activeagent.rb', line 56

def new_active_agent_button(model, session)
  unless(@model.is_a? Persistence::CreateItem)
    post_event_button(:new_active_agent)
  end
end