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/controllers/ClientController.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/controllers/ClientController.php')
| -rw-r--r-- | application/controllers/ClientController.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/application/controllers/ClientController.php b/application/controllers/ClientController.php index 580eb6e..affa780 100644 --- a/application/controllers/ClientController.php +++ b/application/controllers/ClientController.php @@ -20,11 +20,11 @@ class ClientController extends Zend_Controller_Action $hh = $this->_request->getParam('hh'); if (!isset($_POST["add"])){ - $addclient = new Application_Form_Client(); + $addclient = new Application_Form_Client(array('buttontext' => 'Create Client')); $this->view->addclient = $addclient; } else{ - $addfilterform = new Application_Form_Client($_POST); + $addfilterform = new Application_Form_Client(array('buttontext' => 'Create Client'),$_POST); if ($addfilterform->isValid($_POST) || ($mac != '' && $hh != '') ) { $client = new Application_Model_Client(); $mac = ($mac!='')?$mac:$_POST['macadress']; @@ -61,12 +61,12 @@ class ClientController extends Zend_Controller_Action $mapper = new Application_Model_ClientMapper(); $mapper->find($clientID,$data); - $editclient = new Application_Form_Client(); + $editclient = new Application_Form_Client(array('buttontext' => 'Edit Client')); $editclient->populate($data->toArray()); $this->view->editclient = $editclient; } else{ - $editclient = new Application_Form_Client($_POST); + $editclient = new Application_Form_Client(array('buttontext' => 'Edit Client'),$_POST); if ($editclient->isValid($_POST) || ($mac != '' && $hh != '') ) { $client = new Application_Model_Client($_POST); $client->setID($this->_request->getParam('clientID')); |
