From c2e98ec0e67d0f0221ad05981c32510781f8ce4b Mon Sep 17 00:00:00 2001 From: michael pereira Date: Mon, 7 Mar 2011 04:56:52 +0100 Subject: BootMenuEntries angelegt --- application/forms/BootmenuEntriesAdd.php | 64 +++++++++++++++++++++++++++++++- 1 file changed, 62 insertions(+), 2 deletions(-) (limited to 'application/forms/BootmenuEntriesAdd.php') diff --git a/application/forms/BootmenuEntriesAdd.php b/application/forms/BootmenuEntriesAdd.php index 56de36d..0577ede 100644 --- a/application/forms/BootmenuEntriesAdd.php +++ b/application/forms/BootmenuEntriesAdd.php @@ -3,10 +3,70 @@ class Application_Form_BootmenuEntriesAdd extends Zend_Form { - public function init() + public function init() { - /* Form Elements & Other Definitions Here ... */ + $this->setName("BootMenuEntryAdd"); + $this->setMethod('post'); + + $this->addElement('text', 'title', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'Title:', + )); + + $this->addElement('text', 'bootosID', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'BootOsID:', + 'value' => '1', + )); + + $this->addElement('text', 'kcl', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'KCL:', + )); + + $this->addElement('text', 'configID', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'ConfigID:', + 'value' => '1', + )); + + $this->addElement('text', 'order', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'order:', + )); + + $this->addElement('submit', 'addbootmenuentry', array( + 'required' => false, + 'ignore' => true, + 'label' => 'Add Bootmenuentry', + )); + + $this->addElement('button', 'Cancel', array( + 'onclick' => 'self.location="/bootmenu"' + )); + } + } -- cgit v1.2.3-55-g7522