Example #1
0
 /**
  * Load the form.
  */
 private function loadForm()
 {
     $this->frm = new FrontendForm('login', null, null, 'loginForm');
     $this->frm->addText('email')->setAttributes(array('required' => null, 'type' => 'email'));
     $this->frm->addPassword('password')->setAttributes(array('required' => null));
     $this->frm->addCheckbox('remember', true);
 }
Example #2
0
 /**
  * Load the form.
  */
 private function loadForm()
 {
     $this->frm = new FrontendForm('updatePassword', null, null, 'updatePasswordForm');
     $this->frm->addPassword('old_password')->setAttributes(array('required' => null));
     $this->frm->addPassword('new_password', null, null, 'inputText showPasswordInput')->setAttributes(array('required' => null));
     $this->frm->addPassword('verify_new_password', null, null, 'inputText showVerifyPasswordInput')->setAttributes(array('required' => null));
     $this->frm->addCheckbox('show_password');
 }
Example #3
0
 /**
  * Load the form.
  */
 private function loadForm()
 {
     $this->frm = new FrontendForm('register', null, null, 'registerForm');
     $this->frm->addText('display_name');
     $this->frm->addText('email')->setAttributes(array('required' => null, 'type' => 'email'));
     $this->frm->addPassword('password', null, null, 'inputText showPasswordInput')->setAttributes(array('required' => null));
     $this->frm->addCheckbox('show_password');
 }
Example #4
0
 /**
  * Load the form.
  */
 private function loadForm()
 {
     // create the form
     $this->frm = new FrontendForm('resetPassword', null, null, 'resetPasswordForm');
     // create & add elements
     $this->frm->addPassword('password', null, null, 'inputText showPasswordInput')->setAttributes(array('required' => null));
     $this->frm->addCheckbox('show_password');
 }
Example #5
0
 /**
  * Load the form
  */
 private function loadForm()
 {
     // don't show the form if someone is logged in
     if (FrontendProfilesAuthentication::isLoggedIn()) {
         return;
     }
     $this->frm = new FrontendForm('login', FrontendNavigation::getURLForBlock('Profiles', 'Login'));
     $this->frm->addText('email')->setAttributes(array('required' => null, 'type' => 'email'));
     $this->frm->addPassword('password')->setAttributes(array('required' => null));
     $this->frm->addCheckbox('remember', true);
     // parse the form
     $this->frm->parse($this->tpl);
 }
Example #6
0
 /**
  * Load the form.
  */
 private function loadForm()
 {
     $this->frm = new FrontendForm('updateEmail', null, null, 'updateEmailForm');
     $this->frm->addPassword('password')->setAttributes(array('required' => null));
     $this->frm->addText('email', $this->profile->getEmail())->setAttributes(array('required' => null, 'type' => 'email'));
 }