Class: ODDB::View::User::FiPiOfferConfirmComposite

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

Constant Summary

COMPONENTS =
{
  [0,0,0] =>  'fipi_offer_confirm',
  [0,0,1] =>  :amzv_link,
  [0,0,2] =>  'comma_separator',
  [0,0,3] =>  :amzv_article13_link,
  [0,0,4] =>  'nbsp_and_nbsp',
  [0,0,5] =>  :amzv_article14_link,
  [0,0,6] =>  'point',
  [0,1]   => 'fipi_offer_confirmation',
  [0,2]   => View::User::FiPiCalculations,
  [0,3]   => :fipi_offer_disclaimer,
}
CSS_CLASS =
'composite'
CSS_MAP =
{
  [0,0] =>  'th',
  [0,1] =>  'list',
  [0,3] =>  'list',
}
DEFAULT_CLASS =
HtmlGrid::Value

Instance Method Summary (collapse)

Methods inherited from HtmlGrid::Composite

event_link, #hash_insert_col, #hash_insert_row

Instance Method Details



181
182
183
184
185
186
187
# File 'src/view/user/fipi_offer_confirm.rb', line 181

def amzv_article13_link(model, session)
  link = HtmlGrid::Link.new(:azmv_article13, model, session, self)
  link.href = @lookandfeel.lookup(:amzv_article13_href)
  link.value = @lookandfeel.lookup(:amzv_article13)
  link.set_attribute('class', 'th')
  link
end


188
189
190
191
192
193
194
# File 'src/view/user/fipi_offer_confirm.rb', line 188

def amzv_article14_link(model, session)
  link = HtmlGrid::Link.new(:azmv_article14, model, session, self)
  link.href = @lookandfeel.lookup(:amzv_article14_href)
  link.value = @lookandfeel.lookup(:amzv_article14)
  link.set_attribute('class', 'th')
  link
end


174
175
176
177
178
179
180
# File 'src/view/user/fipi_offer_confirm.rb', line 174

def amzv_link(model, session)
  link = HtmlGrid::Link.new(:azmv, model, session, self)
  link.href = @lookandfeel.lookup(:amzv_href)
  link.value = @lookandfeel.lookup(:amzv)
  link.set_attribute('class', 'th')
  link
end

- (Object) fipi_offer_disclaimer(model, session)



195
196
197
198
199
# File 'src/view/user/fipi_offer_confirm.rb', line 195

def fipi_offer_disclaimer(model, session)
  today = Time.now()
  date = today.strftime(@lookandfeel.lookup(:date_format))
  @lookandfeel.lookup(:fipi_offer_disclaimer, date)
end