Class: ODDB::View::Substances::ActiveFormForm

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

Constant Summary

COMPONENTS =
{
  [0,0,0] =>  :effective_label,
  [1,0,1] =>  :effective_form,
  [1,0,2] =>  :effective_submit,
}
CSS_MAP =
{
  [0,0,2] =>  'list',
}
EVENT =
:assign
LABELS =
false
LEGACY_INTERFACE =
false

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) effective_form(model)



87
88
89
# File 'src/view/substances/substance.rb', line 87

def effective_form(model)
  HtmlGrid::InputText.new(:effective_form, model, @session, self)
end

- (Object) effective_label(model)



78
79
80
81
82
83
84
85
86
# File 'src/view/substances/substance.rb', line 78

def effective_label(model)
  if(model.is_effective_form?)
    @lookandfeel.lookup(:effective_form_self)
  elsif(model.has_effective_form?)
    @lookandfeel.lookup(:effective_form_other)
  else
    @lookandfeel.lookup(:effective_form_assign)
  end
end

- (Object) effective_submit(model)



90
91
92
# File 'src/view/substances/substance.rb', line 90

def effective_submit(model)
  submit(model) #unless model.is_effective_form?
end