summaryrefslogtreecommitdiffstats
path: root/application/forms/BootmenuCreate.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/forms/BootmenuCreate.php')
-rw-r--r--application/forms/BootmenuCreate.php33
1 files changed, 32 insertions, 1 deletions
diff --git a/application/forms/BootmenuCreate.php b/application/forms/BootmenuCreate.php
index 35d476f..5b284f5 100644
--- a/application/forms/BootmenuCreate.php
+++ b/application/forms/BootmenuCreate.php
@@ -5,7 +5,38 @@ class Application_Form_BootmenuCreate extends Zend_Form
public function init()
{
- /* Form Elements & Other Definitions Here ... */
+ $this->setName("BootMenuCreate");
+ $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', 'groupID', array(
+ 'filters' => array('StringTrim'),
+ 'validators' => array(
+ array('StringLength', false, array(0, 50)),
+ ),
+ 'required' => true,
+ 'label' => 'GroupID:',
+ 'value' => '1',
+ ));
+
+ $this->addElement('submit', 'createbootmenu', array(
+ 'required' => false,
+ 'ignore' => true,
+ 'label' => 'Create Bootmenu',
+ ));
+
+ $this->addElement('button', 'Cancel', array(
+ 'onclick' => 'self.location="/bootmenu"'
+ ));
+
}