diff options
| author | michael pereira | 2011-03-15 11:35:00 +0100 |
|---|---|---|
| committer | michael pereira | 2011-03-15 11:35:00 +0100 |
| commit | 3f9700079f95c7fb715e5c9363e48dce6c7c627f (patch) | |
| tree | 17fe70fcfbe651a9c52194423a67bac5a9c692e9 /application/modules/dev/forms/BootmenuEdit.php | |
| parent | Ressource Controller (diff) | |
| parent | links korrigiert, dev ist nun lauffähig (diff) | |
| download | pbs2-3f9700079f95c7fb715e5c9363e48dce6c7c627f.tar.gz pbs2-3f9700079f95c7fb715e5c9363e48dce6c7c627f.tar.xz pbs2-3f9700079f95c7fb715e5c9363e48dce6c7c627f.zip | |
Ressource gelöscht
Diffstat (limited to 'application/modules/dev/forms/BootmenuEdit.php')
| -rw-r--r-- | application/modules/dev/forms/BootmenuEdit.php | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/application/modules/dev/forms/BootmenuEdit.php b/application/modules/dev/forms/BootmenuEdit.php new file mode 100644 index 0000000..2e1e8fc --- /dev/null +++ b/application/modules/dev/forms/BootmenuEdit.php @@ -0,0 +1,51 @@ +<?php + +class dev_Form_BootmenuEdit extends Zend_Form +{ + + private $grouplist; + + public function setGrouplist($grouplist){ + $this->grouplist = $grouplist; + + } + + public function init() + { + $this->setName("BootMenuEdit"); + $this->setMethod('post'); + + $this->addElement('text', 'title', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'Title:', + )); + + $groupfield = $this->createElement('select','groupID'); + $groupfield ->setLabel('Group:'); + + if(count($this->grouplist)>0){ + foreach($this->grouplist as $group => $g){ + $groupfield->addMultiOption($g->getID(), $g->getTitle()); + } + } + $groupfield->setRegisterInArrayValidator(false); + $this->addElement($groupfield); + + $this->addElement('submit', 'editbootmenu', array( + 'required' => false, + 'ignore' => true, + 'label' => 'Edit BootMenu', + )); + + $this->addElement('button', 'Cancel', array( + 'onclick' => 'self.location="/bootmenu"' + )); + + } + +} + |
