diff options
| author | michael pereira | 2011-03-11 10:02:41 +0100 |
|---|---|---|
| committer | michael pereira | 2011-03-11 10:02:41 +0100 |
| commit | a83dfa457afb43a661074bdc1676c1a1d7653625 (patch) | |
| tree | febf55c855326b3d6ba79fb663f17fad88f02403 /application/forms/Client.php | |
| parent | bootos getressources (diff) | |
| parent | AddClientToPool über Formular gefixxt, Buttonbeschriftungen anhand der Actio... (diff) | |
| download | pbs2-a83dfa457afb43a661074bdc1676c1a1d7653625.tar.gz pbs2-a83dfa457afb43a661074bdc1676c1a1d7653625.tar.xz pbs2-a83dfa457afb43a661074bdc1676c1a1d7653625.zip | |
Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2
Diffstat (limited to 'application/forms/Client.php')
| -rw-r--r-- | application/forms/Client.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/application/forms/Client.php b/application/forms/Client.php index 1378349..83df97e 100644 --- a/application/forms/Client.php +++ b/application/forms/Client.php @@ -28,9 +28,17 @@ class Application_Form_Client extends Zend_Form $this->addElement('submit', 'add', array( 'required' => false, 'ignore' => true, - 'label' => 'Save', + 'label' => $this->buttontext, + )); + + $this->addElement('button', 'Cancel', array( + 'onclick' => 'self.location="/client"' )); } + private $buttontext = 'Save'; + function setButtontext($v){ + $this->buttontext = $v; + } } |
