From 83767be80c29e3d3ca99f4a7d2eaab97f8256d1b Mon Sep 17 00:00:00 2001 From: Sebastian Schmelzer Date: Wed, 11 Jan 2012 15:22:32 +0100 Subject: remove unused stuff --- application/modules/dev/forms/BootisoEdit.php | 109 -------------------------- 1 file changed, 109 deletions(-) delete mode 100644 application/modules/dev/forms/BootisoEdit.php (limited to 'application/modules/dev/forms/BootisoEdit.php') diff --git a/application/modules/dev/forms/BootisoEdit.php b/application/modules/dev/forms/BootisoEdit.php deleted file mode 100644 index ef8f9eb..0000000 --- a/application/modules/dev/forms/BootisoEdit.php +++ /dev/null @@ -1,109 +0,0 @@ -grouplist = $grouplist; - - } - public function setPrebootlist($prebootlist) { - $this->prebootlist = $prebootlist; - - } - - - public function init() { - $this->setName("BootIsoCreate"); - $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); - - $prebootfield = $this->createElement('select', 'prebootID'); - $prebootfield ->setLabel('Preboot:'); - - if(count($this->prebootlist) > 0) { - foreach($this->prebootlist as $preboot => $p) { - $prebootfield->addMultiOption($p->getID(), $p->getTitle()); - } - } - $prebootfield->setRegisterInArrayValidator(false); - $this->addElement($prebootfield); - - $this->addElement('text', 'serialnumber', array( - 'filters' => array('StringTrim'), - 'validators' => array( - array('StringLength', false, array(0, 50)), - ), - 'required' => true, - 'size' => 50, - 'label' => 'Serialnumber:', - )); - - $date = new DateTime(); - $date->add(new DateInterval('P1Y')); - $this->addElement('text', 'expires', array( - 'filters' => array('StringTrim'), - 'validators' => array( - array('StringLength', false, array(0, 50)), - ), - 'required' => false, - 'label' => 'Expires:', - 'value' => $date->format('Y-m-d'), - )); - - $this->addElement('text', 'public', array( - 'filters' => array('StringTrim'), - 'validators' => array( - array('StringLength', false, array(0, 50)), - ), - 'required' => true, - 'label' => 'Public-Level:', - 'value' => '0' - )); - - - $this->addElement('submit', 'editbootiso', array( - 'required' => false, - 'ignore' => true, - 'label' => 'Edit BootISO', - )); - - $this->addElement('button', 'Cancel', array( - 'onclick' => 'self.location="/dev/bootiso"' - )); - - } -} - -- cgit v1.2.3-55-g7522