summaryrefslogtreecommitdiffstats
path: root/application/modules/dev/forms/Client.php
diff options
context:
space:
mode:
authorSimon2011-03-16 14:42:40 +0100
committerSimon2011-03-16 14:42:40 +0100
commit29224a1ccc162e457589210168c38529e81a572d (patch)
treef049b58ed09cd4bd9de2e3fe882593b75b16cae4 /application/modules/dev/forms/Client.php
parentMerge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff)
downloadpbs2-29224a1ccc162e457589210168c38529e81a572d.tar.gz
pbs2-29224a1ccc162e457589210168c38529e81a572d.tar.xz
pbs2-29224a1ccc162e457589210168c38529e81a572d.zip
Helper initialisiert, ClientController geadded
Diffstat (limited to 'application/modules/dev/forms/Client.php')
-rw-r--r--application/modules/dev/forms/Client.php18
1 files changed, 16 insertions, 2 deletions
diff --git a/application/modules/dev/forms/Client.php b/application/modules/dev/forms/Client.php
index f09f720..1e62877 100644
--- a/application/modules/dev/forms/Client.php
+++ b/application/modules/dev/forms/Client.php
@@ -7,7 +7,16 @@ class dev_Form_Client extends Zend_Form
{
$this->setName("pool");
$this->setMethod('post');
-
+
+ $groupfield = $this->createElement('select','groupID');
+ $groupfield ->setLabel('Group:');
+
+ foreach($this->groups as $c){
+ $groupfield->addMultiOption($c->getID(),$c->getTitle());
+ }
+ $this->addElement($groupfield);
+
+
$this->addElement('text', 'macadress', array(
'filters' => array('StringTrim'),
'validators' => array(
@@ -32,13 +41,18 @@ class dev_Form_Client extends Zend_Form
));
$this->addElement('button', 'Cancel', array(
- 'onclick' => 'self.location="/client"'
+ 'onclick' => 'self.location="/dev/client"'
));
}
private $buttontext = 'Save';
+ private $groups;
function setButtontext($v){
$this->buttontext = $v;
}
+ public function setGroups($groups){
+ $this->groups = $groups;
+ return $this;
+ }
}