public function init() { $this->setAttrib('id', 'auth_lost_password')->setAttrib('name', 'auth_lost_password'); $this->addElement(OSS_Form_Auth::createUsernameElement()); $this->addElement(OSS_Form::createSubmitElement('submit', _('Reset Password'))); $this->addElement(OSS_Form_Auth::createReturnToLoginElement()); }
public function init() { $this->setAttrib('id', 'auth_lost_username')->setAttrib('name', 'auth_lost_username'); $this->addElement(OSS_Form_User::createEmailElement()); $this->addElement(OSS_Form::createSubmitElement('submit', _('Find Username(s)'))); $this->addElement(OSS_Form_Auth::createReturnToLoginElement()); }
public function init() { $this->setAttrib('id', 'change_password')->setAttrib('name', 'change_password')->setAction(OSS_Utils::genUrl('profile', 'change-password')); $this->addElement(OSS_Form_Auth::createPasswordElement('current_password')->setLabel(_('Current Password'))->setAttrib('class', 'span6')); $this->addElement(OSS_Form_Auth::createPasswordElement('new_password')->removeValidator('stringLength')->addValidator('stringLength', false, array(8, 255, 'UTF-8'))->setLabel(_('New Password'))->setAttrib('class', 'span6')); $this->addElement(OSS_Form_Auth::createPasswordConfirmElement('confirm_password', 'new_password')->setAttrib('class', 'span6')); $this->addElement(OSS_Form::createSubmitElement('submit', _('Change Password'))); }
public function init() { $this->setAttrib('id', 'customer_notes')->setAttrib('name', 'customer_notes')->setAction(OSS_Utils::genUrl('profile', 'update-customer-notes')); $notify = $this->createElement('radio', 'notify'); $notify->addMultiOptions(['none' => 'Disable all email notifications', 'default' => 'Email me on changes to only watched customers and notes', 'all' => 'Email me on any change to any customer note'])->setValue('default'); $this->addElement($notify); $this->addElement(OSS_Form::createSubmitElement('submit', _('Change Notification Preference'))); }
public function init() { $this->setAttrib('id', 'auth_reset_password')->setAttrib('name', 'auth_reset_password'); $this->addElement(OSS_Form_Auth::createUsernameElement()); $this->addElement(OSS_Form_Auth::createPasswordResetTokenElement()); $this->addElement(OSS_Form_Auth::createPasswordElement()->removeValidator('stringLength')->addValidator('stringLength', false, array(8, 30, 'UTF-8'))); $this->addElement(OSS_Form_Auth::createPasswordConfirmElement()); $this->addElement(OSS_Form::createSubmitElement('submit', _('Reset Password'))); $this->addElement(OSS_Form_Auth::createReturnToLoginElement()); }
public function init() { $this->setAttrib('id', 'auth_reset_password')->setAttrib('name', 'auth_reset_password'); $this->addElement(OSS_Form_Auth::createUsernameElement()); $this->addElement(OSS_Form_Auth::createPasswordResetTokenElement()); $this->addElement(OSS_Form_Auth::createPasswordElement()); $this->addElement(OSS_Form_Auth::createPasswordConfirmElement()); $this->addElement(OSS_Form::createSubmitElement('submit', _('Reset Password'))); $this->_addActionsDisplayGroupElement(OSS_Form_Auth::createReturnToLoginElement()); }
public function init() { $this->setAttrib('id', 'auth_login')->setAttrib('name', 'auth_login'); $this->addElement(OSS_Form_Auth::createUsernameElement()); $this->addElement(OSS_Form_Auth::createPasswordElement()); //$this->addElement( OSS_Form_Auth::createRememberMeElement() ); $this->addElement(OSS_Form::createSubmitElement('submit', _('Login'))); $this->addElement(OSS_Form_Auth::createLostPasswordElement()); $this->addElement(OSS_Form_Auth::createLostUsernameElement()); }