diff options
| author | Michael Neves | 2012-01-26 17:58:53 +0100 |
|---|---|---|
| committer | Michael Neves | 2012-01-26 17:58:53 +0100 |
| commit | 08e59ba66fd7281f74d053461043855f06aa4e01 (patch) | |
| tree | f5afa981f0c1471b30adacb46cbe6e96d2ea5883 /application/modules/user/forms/Preboot.php | |
| parent | Bootiso and Preboot Model fix (diff) | |
| download | pbs2-08e59ba66fd7281f74d053461043855f06aa4e01.tar.gz pbs2-08e59ba66fd7281f74d053461043855f06aa4e01.tar.xz pbs2-08e59ba66fd7281f74d053461043855f06aa4e01.zip | |
Preboot add/edit
Diffstat (limited to 'application/modules/user/forms/Preboot.php')
| -rw-r--r-- | application/modules/user/forms/Preboot.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/application/modules/user/forms/Preboot.php b/application/modules/user/forms/Preboot.php index bb90f65..cff3e26 100644 --- a/application/modules/user/forms/Preboot.php +++ b/application/modules/user/forms/Preboot.php @@ -14,6 +14,7 @@ class user_Form_Preboot extends Zend_Form { private $action; private $page; + private $preboottype; public function setAction($action) { $this->action = $action; @@ -58,6 +59,17 @@ class user_Form_Preboot extends Zend_Form { 'label' => 'Description:', )); + $preboottypefield = $this->createElement('select', 'preboottypeID'); + $preboottypefield->setLabel('Type:'); + $preboottypefield->setAttrib('readOnly', $meta); + $preboottypefield->setAttrib('onChange', "document.getElementById('".$this->action."').submit();"); + $preboottypefield->setValue($_POST['preboottypeID']); + foreach($this->preboottype as $k => $pt) { + $preboottypefield->addMultiOption($pt->getID(), $pt->getName()); + } + + $this->addElement($preboottypefield); + $serial = time(); for($i = 2; $i < 14; $i += 3) { |
