diff options
author | Simon | 2011-03-11 10:00:40 +0100 |
---|---|---|
committer | Simon | 2011-03-11 10:00:40 +0100 |
commit | abda64d32457744695f91a20feafde3431f9e9e2 (patch) | |
tree | 3ceac1af1fb7ebd2a1c8fcfce278d3ded9f3d1e4 /application/forms/Client.php | |
parent | FilterController fixes (diff) | |
download | pbs2-abda64d32457744695f91a20feafde3431f9e9e2.tar.gz pbs2-abda64d32457744695f91a20feafde3431f9e9e2.tar.xz pbs2-abda64d32457744695f91a20feafde3431f9e9e2.zip |
AddClientToPool über Formular gefixxt, Buttonbeschriftungen anhand der Action beschriftet
Diffstat (limited to 'application/forms/Client.php')
-rw-r--r-- | application/forms/Client.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/application/forms/Client.php b/application/forms/Client.php index d1d4382..83df97e 100644 --- a/application/forms/Client.php +++ b/application/forms/Client.php @@ -28,13 +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; + } } |