summaryrefslogtreecommitdiffstats
path: root/application/modules/user/forms
diff options
context:
space:
mode:
authorSimon2011-03-29 17:11:13 +0200
committerSimon2011-03-29 17:11:13 +0200
commit9eb4e958e488c0eccf210cdd6781856e02eee24d (patch)
tree00d9a8bc6046070180b6fe7aa7015e0f122fd04d /application/modules/user/forms
parenton-screen keyboard in fbgui beim login hinzugefügt (diff)
parentAdd Right Form Select mit optgroup (diff)
downloadpbs2-9eb4e958e488c0eccf210cdd6781856e02eee24d.tar.gz
pbs2-9eb4e958e488c0eccf210cdd6781856e02eee24d.tar.xz
pbs2-9eb4e958e488c0eccf210cdd6781856e02eee24d.zip
Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2
Diffstat (limited to 'application/modules/user/forms')
-rw-r--r--application/modules/user/forms/LinkRight.php20
1 files changed, 1 insertions, 19 deletions
diff --git a/application/modules/user/forms/LinkRight.php b/application/modules/user/forms/LinkRight.php
index d99c2b6..8fe2f46 100644
--- a/application/modules/user/forms/LinkRight.php
+++ b/application/modules/user/forms/LinkRight.php
@@ -3,17 +3,12 @@
class user_Form_LinkRight extends Zend_Form
{
private $rightlist;
- private $rightcategorieslist;
private $roleID;
public function setRightlist($rightlist){
$this->rightlist = $rightlist;
}
- public function setRightcategorieslist($rightcategorieslist){
- $this->rightcategorieslist = $rightcategorieslist;
- }
-
public function setRoleID($roleID){
$this->roleID = $roleID;
}
@@ -23,20 +18,7 @@ class user_Form_LinkRight extends Zend_Form
$this->setName("LinkRight");
$this->setMethod('post');
- $rightfield = $this->createElement('select','rightID');
- $rightfield ->setLabel('Right:');
-
- if(count($this->rightlist)>0){
- foreach($this->rightcategorieslist as $k => $v) {
- $rightfield->addMultiOption("category" . $k, "---" . $v . "---");
- $rights = $this->rightlist[$k];
- foreach($rights as $right => $r){
- $rightfield->addMultiOption($r->getID(), $r->getTitle());
- $count++;
- }
-
- }
- }
+ $rightfield = $this->createElement('select','rightID',array('label'=> 'Right: ','required' => true,'multioptions'=> $this->rightlist));
$rightfield->setRegisterInArrayValidator(false);
$this->addElement($rightfield);