no "Reset changes" for new accounts

This commit is contained in:
Roland Gruber 2013-02-17 13:30:40 +00:00
parent 150965e17e
commit a7a0e18960
1 changed files with 5 additions and 3 deletions

View File

@ -1157,9 +1157,11 @@ class accountContainer {
$leftButtonGroup->addElement($saveButton); $leftButtonGroup->addElement($saveButton);
$leftButtonGroup->addElement(new htmlSpacer('1px', null)); $leftButtonGroup->addElement(new htmlSpacer('1px', null));
// reset button // reset button
$resetButton = new htmlButton('accountContainerReset', _('Reset changes')); if (!$this->isNewAccount) {
$resetButton->setIconClass('undoButton'); $resetButton = new htmlButton('accountContainerReset', _('Reset changes'));
$leftButtonGroup->addElement($resetButton); $resetButton->setIconClass('undoButton');
$leftButtonGroup->addElement($resetButton);
}
// set password button // set password button
if ($this->showSetPasswordButton()) { if ($this->showSetPasswordButton()) {
$leftButtonGroup->addElement(new htmlSpacer('15px', null)); $leftButtonGroup->addElement(new htmlSpacer('15px', null));