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 | |
| 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')
| -rw-r--r-- | application/forms/Client.php | 6 | ||||
| -rw-r--r-- | application/forms/FilterAdd.php | 6 | ||||
| -rw-r--r-- | application/forms/FilterEntriesAdd.php | 6 | ||||
| -rw-r--r-- | application/forms/Pool.php | 6 | ||||
| -rw-r--r-- | application/forms/PoolClient.php | 1 | ||||
| -rw-r--r-- | application/forms/Session.php | 6 |
6 files changed, 26 insertions, 5 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; + } } diff --git a/application/forms/FilterAdd.php b/application/forms/FilterAdd.php index 43a4aca..b720089 100644 --- a/application/forms/FilterAdd.php +++ b/application/forms/FilterAdd.php @@ -45,7 +45,7 @@ class Application_Form_FilterAdd extends Zend_Form $this->addElement('submit', 'add', array( 'required' => false, 'ignore' => true, - 'label' => 'Save', + 'label' => $this->buttontext, )); $this->addElement('button', 'Cancel', array( @@ -56,6 +56,10 @@ class Application_Form_FilterAdd extends Zend_Form $this->bootmenus = $val; return; } + private $buttontext = 'Save'; + function setButtontext($v){ + $this->buttontext = $v; + } } diff --git a/application/forms/FilterEntriesAdd.php b/application/forms/FilterEntriesAdd.php index 2646484..3b051f5 100644 --- a/application/forms/FilterEntriesAdd.php +++ b/application/forms/FilterEntriesAdd.php @@ -35,7 +35,7 @@ class Application_Form_FilterEntriesAdd extends Zend_Form $this->addElement('submit', 'add', array( 'required' => false, 'ignore' => true, - 'label' => 'Save', + 'label' => $this->buttontext, )); $this->addElement('button', 'Cancel', array( @@ -50,6 +50,10 @@ class Application_Form_FilterEntriesAdd extends Zend_Form { $this->filterID = $id; } + private $buttontext = 'Save'; + function setButtontext($v){ + $this->buttontext = $v; + } } diff --git a/application/forms/Pool.php b/application/forms/Pool.php index 2fcdf78..be30444 100644 --- a/application/forms/Pool.php +++ b/application/forms/Pool.php @@ -35,13 +35,17 @@ class Application_Form_Pool 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="/pool"' )); } + private $buttontext = 'Save'; + function setButtontext($v){ + $this->buttontext = $v; + } } diff --git a/application/forms/PoolClient.php b/application/forms/PoolClient.php index 7bacae0..0c4ef6a 100644 --- a/application/forms/PoolClient.php +++ b/application/forms/PoolClient.php @@ -11,6 +11,7 @@ class Application_Form_PoolClient extends Zend_Form $clientfield = $this->createElement('select','clientID'); $clientfield ->setLabel('Client:'); + print_a($this->clients); foreach($this->clients as $c){ $clientfield->addMultiOption($c['clientID'],$c['macadress']." - ".$c['hardwarehash']); } diff --git a/application/forms/Session.php b/application/forms/Session.php index b74ca43..f2175a7 100644 --- a/application/forms/Session.php +++ b/application/forms/Session.php @@ -73,7 +73,7 @@ $this->addElement('text', 'ip6', array( $this->addElement('submit', 'add', array( 'required' => false, 'ignore' => true, - 'label' => 'Save', + 'label' => $this->buttontext, )); $this->addElement('button', 'Cancel', array( @@ -89,6 +89,10 @@ $this->addElement('text', 'ip6', array( function setBootisos($v){ $this->bootisos = $v; } + private $buttontext = 'Save'; + function setButtontext($v){ + $this->buttontext = $v; + } } |
