summaryrefslogtreecommitdiffstats
path: root/application/forms/BootmenuEntriesEdit.php
diff options
context:
space:
mode:
authormichael pereira2011-03-07 04:56:52 +0100
committermichael pereira2011-03-07 04:56:52 +0100
commitc2e98ec0e67d0f0221ad05981c32510781f8ce4b (patch)
tree392515126ebca6b6c7d93d8b05a535e76a8c90c1 /application/forms/BootmenuEntriesEdit.php
parentBootIso Interface fertig (diff)
downloadpbs2-c2e98ec0e67d0f0221ad05981c32510781f8ce4b.tar.gz
pbs2-c2e98ec0e67d0f0221ad05981c32510781f8ce4b.tar.xz
pbs2-c2e98ec0e67d0f0221ad05981c32510781f8ce4b.zip
BootMenuEntries angelegt
Diffstat (limited to 'application/forms/BootmenuEntriesEdit.php')
-rw-r--r--application/forms/BootmenuEntriesEdit.php65
1 files changed, 62 insertions, 3 deletions
diff --git a/application/forms/BootmenuEntriesEdit.php b/application/forms/BootmenuEntriesEdit.php
index a63621d..e69dc8b 100644
--- a/application/forms/BootmenuEntriesEdit.php
+++ b/application/forms/BootmenuEntriesEdit.php
@@ -3,11 +3,70 @@
class Application_Form_BootmenuEntriesEdit 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', 'editbootmenuentry', array(
+ 'required' => false,
+ 'ignore' => true,
+ 'label' => 'Edit Bootmenuentry',
+ ));
+
+ $this->addElement('button', 'Cancel', array(
+ 'onclick' => 'self.location="/bootmenu"'
+ ));
+ }
+
}