Class: ODDB::Html::View::Drugs::Admin::ProductForm

Inherits:
HtmlGrid::Form
  • Object
show all
Includes:
HtmlGrid::ErrorMessage
Defined in:
lib/oddb/html/view/drugs/admin/product.rb

Constant Summary collapse

COMPONENTS =
{
  [0,0] => :name,
  [0,1] => :company,
  [1,2] => :submit, 
}
EVENT =
:update
LABELS =
true
LEGACY_INTERFACE =
false
SYMBOL_MAP =
{
  # Product@name is used to identify imported Products 
  # and should therefore not be modified
  :name => HtmlGrid::Value,  
}

Instance Method Summary collapse

Instance Method Details

#hidden_fields(context) ⇒ Object



62
63
64
# File 'lib/oddb/html/view/drugs/admin/product.rb', line 62

def hidden_fields(context)
  super << context.hidden("uid", @model.uid)
end

#initObject



58
59
60
61
# File 'lib/oddb/html/view/drugs/admin/product.rb', line 58

def init
  super
  error_message
end