CC-3969: Reset Password: specifying wrong e-mail keeps you on the same page

without possibility to navigate back gracefully

- done
This commit is contained in:
James 2012-06-20 18:02:46 -04:00
parent 2480639e58
commit c669d3cb47
5 changed files with 26 additions and 0 deletions

View file

@ -29,5 +29,13 @@ class Application_Form_PasswordRestore extends Zend_Form
'ViewHelper'
)
));
$cancel = new Zend_Form_Element_Button("cancel");
$cancel->class = 'ui-button ui-widget ui-state-default ui-button-text-only center';
$cancel->setLabel("Cancel")
->setIgnore(True)
->setAttrib('onclick', 'redirectToLogin();')
->setDecorators(array('ViewHelper'));
$this->addElement($cancel);
}
}