public function LoginForm()
    {
        $form = CheckoutLoginForm::create($this, 'LoginForm');
        $form->setAttribute("action", $this->Link("LoginForm"));

        $form
            ->Fields()
            ->add(HiddenField::create("BackURL")->setValue($this->Link()));

        $form
            ->Actions()
            ->dataFieldByName('action_dologin')
            ->addExtraClass("btn btn-primary");

        $this->extend("updateLoginForm", $form);

        return $form;
    }
public function LoginForm()
    {
        $form = CheckoutLoginForm::create($this, 'LoginForm');
        $form->setAttribute("action", $this->Link("LoginForm"));

        $form
            ->Fields()
            ->add(HiddenField::create("BackURL")->setValue($this->Link()));

        $form
            ->Actions()
            ->dataFieldByName('action_dologin')
            ->addExtraClass("btn btn-primary");

        $this->extend("updateLoginForm", $form);

        return $form;
    }
public function LoginForm ( ) { $ form = CheckoutLoginForm :: create ( $ this , 'LoginForm' ) ; $ form -> setAttribute ( "action" , $ this -> Link ( "LoginForm" ) ) ; $ form -> Fields ( ) -> add ( HiddenField :: create ( "BackURL" ) -> setValue ( $ this -> Link ( ) ) ) ; $ form -> Actions ( ) -> dataFieldByName ( 'action_dologin' ) -> addExtraClass ( "btn btn-primary" ) ; $ this -> extend ( "updateLoginForm" , $ form ) ; return $ form ; }
Generate a login form

@return MemberLoginForm
Generate a login form