summaryrefslogtreecommitdiffstats
path: root/application/controllers/ClientController.php
diff options
context:
space:
mode:
authormichael pereira2011-03-11 10:02:41 +0100
committermichael pereira2011-03-11 10:02:41 +0100
commita83dfa457afb43a661074bdc1676c1a1d7653625 (patch)
treefebf55c855326b3d6ba79fb663f17fad88f02403 /application/controllers/ClientController.php
parentbootos getressources (diff)
parentAddClientToPool über Formular gefixxt, Buttonbeschriftungen anhand der Actio... (diff)
downloadpbs2-a83dfa457afb43a661074bdc1676c1a1d7653625.tar.gz
pbs2-a83dfa457afb43a661074bdc1676c1a1d7653625.tar.xz
pbs2-a83dfa457afb43a661074bdc1676c1a1d7653625.zip
Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2
Diffstat (limited to 'application/controllers/ClientController.php')
-rw-r--r--application/controllers/ClientController.php8
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'));