Class: ODDB::View::AddressSent

Inherits:
HtmlGrid::Composite show all
Defined in:
src/view/suggest_address_confirm.rb

Constant Summary

CSS_CLASS =
'composite'
COMPONENTS =
{
  [0,0]   =>  :address_sent,
  [1,0]   =>  :go_back,
  [0,1]   => SuggestedAddress,
}
CSS_MAP =
{
  [0,0,2] => 'confirm',
  [0,1] => 'list',
}

Instance Method Summary (collapse)

Methods inherited from HtmlGrid::Composite

event_link, #hash_insert_col, #hash_insert_row

Instance Method Details

- (Object) address_sent(model, session)



20
21
22
# File 'src/view/suggest_address_confirm.rb', line 20

def address_sent(model, session)
  @lookandfeel.lookup(:address_sent)
end

- (Object) go_back(model, session)



23
24
25
26
27
28
29
# File 'src/view/suggest_address_confirm.rb', line 23

def go_back(model, session)
  link = HtmlGrid::Link.new(:address_back, model, session, self)
  link.href = @session.lookandfeel._event_url(:resolve,
    {:pointer => model.address_pointer.parent})
  link.css_class = 'list'
  link
end