From abda64d32457744695f91a20feafde3431f9e9e2 Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 11 Mar 2011 10:00:40 +0100 Subject: AddClientToPool über Formular gefixxt, Buttonbeschriftungen anhand der Action beschriftet --- application/forms/Client.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'application/forms/Client.php') 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; + } } -- cgit v1.2.3-55-g7522