Class: BBMB::Html::View::TermsOfService
- Inherits:
-
HtmlGrid::Composite
- Object
- HtmlGrid::Composite
- BBMB::Html::View::TermsOfService
- Defined in:
- lib/bbmb/html/view/current_order.rb
Constant Summary collapse
- COMPONENTS =
{ [0,0] => :accept_terms, [1,0] => "terms_of_service", }
- SYMBOL_MAP =
{ :accept_terms => HtmlGrid::InputCheckbox, }
Constants inherited from HtmlGrid::Composite
HtmlGrid::Composite::LEGACY_INTERFACE
Instance Method Summary collapse
Instance Method Details
#accept_terms(model) ⇒ Object
297 298 299 300 301 302 |
# File 'lib/bbmb/html/view/current_order.rb', line 297 def accept_terms(model) model = @session.state._customer check = HtmlGrid::InputCheckbox.new(:accept_terms, model, @session, self) check.attributes['checked'] = !model.terms_last_accepted.nil? check end |