app/forms/UserSettings.php: Show "Save" or "Create" based on if there is a entity id or not.
This commit is contained in:
parent
c6704f5f4a
commit
652b814e13
1 changed files with 1 additions and 1 deletions
|
|
@ -148,7 +148,7 @@ class UserSettings extends FormBase
|
||||||
$this->_passwords();
|
$this->_passwords();
|
||||||
|
|
||||||
// Submit
|
// Submit
|
||||||
$submit = new Submit('Save', array('class' => 'button button-default'));
|
$submit = new Submit($entity && $entity->getId() ? 'Save' : 'Create', array('class' => 'button button-default'));
|
||||||
$this->add($submit);
|
$this->add($submit);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue