diff options
| author | michael pereira | 2011-03-07 04:56:52 +0100 |
|---|---|---|
| committer | michael pereira | 2011-03-07 04:56:52 +0100 |
| commit | c2e98ec0e67d0f0221ad05981c32510781f8ce4b (patch) | |
| tree | 392515126ebca6b6c7d93d8b05a535e76a8c90c1 /application/forms/BootmenuEntriesAdd.php | |
| parent | BootIso Interface fertig (diff) | |
| download | pbs2-c2e98ec0e67d0f0221ad05981c32510781f8ce4b.tar.gz pbs2-c2e98ec0e67d0f0221ad05981c32510781f8ce4b.tar.xz pbs2-c2e98ec0e67d0f0221ad05981c32510781f8ce4b.zip | |
BootMenuEntries angelegt
Diffstat (limited to 'application/forms/BootmenuEntriesAdd.php')
| -rw-r--r-- | application/forms/BootmenuEntriesAdd.php | 64 |
1 files changed, 62 insertions, 2 deletions
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"' + )); + } + } |
