Class: BBMB::Html::View::LoginForm

Inherits:
HtmlGrid::Form
  • Object
show all
Defined in:
lib/bbmb/html/view/login.rb

Constant Summary collapse

COMPONENTS =
{
  [0,0] =>  :email,
  [0,1] =>  :pass,
  [1,2] =>  :submit,
  [0,3] =>  :new_customer,
}
CSS_MAP =
{ [0,3,2] => 'new-customer' }
EVENT =
:login
FORM_ID =
'login'
FORM_NAME =
'login'
LABELS =
true
SYMBOL_MAP =
{
  :pass =>  HtmlGrid::Pass, 
}

Instance Method Summary collapse

Instance Method Details

#new_customer(model) ⇒ Object



28
29
30
31
32
33
34
# File 'lib/bbmb/html/view/login.rb', line 28

def new_customer(model)
  link = HtmlGrid::Link.new(:new_customer, model, @session, self)
  link.href = @lookandfeel.lookup(:new_customer_mail)
  link.value = @lookandfeel.lookup(:new_customer_invite)
  link.label = true
  link
end