Class: ODDB::View::Drugs::PaymentMethodForm

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

Constant Summary

COMPONENTS =
{
  [0,0] =>  :company_name,
  [0,1] =>  :fullname,
  [0,2] =>  :email,
  [0,3] =>  :payment_method,
  [1,4] =>  :submit,
}
CSS_CLASS =
'component'
HTML_ATTRIBUTES =
{
  'style' =>  'width:30%',
}
EVENT =
:proceed_payment
LABELS =
true
CSS_MAP =
{
  [0,0,2,5] =>  'list',
}
COMPONENT_CSS_MAP =
{
  [0,0,2,3] =>  'standard',
}
DEFAULT_CLASS =
HtmlGrid::Value
LEGACY_INTERFACE =
false
SYMBOL_MAP =
{
  :payment_method =>  HtmlGrid::Select,
}
LOOKANDFEEL_MAP =
{
  :fullname => :contact,
}

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) hidden_fields(context)



46
47
48
49
50
51
52
# File 'src/view/drugs/payment_method.rb', line 46

def hidden_fields(context)
   = super
  [:search_query, :search_type].each { |key|
     << context.(key.to_s, @session.state.send(key))
  } 
  
end

- (Object) init



39
40
41
42
43
44
45
# File 'src/view/drugs/payment_method.rb', line 39

def init
  super
  if(@session.error?)
    error = RuntimeError.new('e_need_all_input')
    __message(error, 'processingerror')
  end
end