summaryrefslogtreecommitdiffstats
path: root/application/modules/dev/forms
diff options
context:
space:
mode:
authormichael pereira2011-03-16 16:35:20 +0100
committermichael pereira2011-03-16 16:35:20 +0100
commitb09352fc9ec322ea0ae744077a66fcaf61465ed5 (patch)
treeb9e45999ce4d1eaa08035601bfd8f14f91547d30 /application/modules/dev/forms
parentKCLAppend hinzugefuegt, KCL fertig :-) (diff)
parentClientController geändert, Forms können in FBGui und User nicht benutzt werden (diff)
downloadpbs2-b09352fc9ec322ea0ae744077a66fcaf61465ed5.tar.gz
pbs2-b09352fc9ec322ea0ae744077a66fcaf61465ed5.tar.xz
pbs2-b09352fc9ec322ea0ae744077a66fcaf61465ed5.zip
Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2
Diffstat (limited to 'application/modules/dev/forms')
-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;
+ }
}