summaryrefslogtreecommitdiffstats
path: root/application/forms/BootmenuCreate.php
diff options
context:
space:
mode:
authormichael pereira2011-03-06 20:12:36 +0100
committermichael pereira2011-03-06 20:12:36 +0100
commit0e017ebdc1edbbf230f0f0160f103c39ef675725 (patch)
treee7848e531d30a01145f2f98d8a3189ea6699c54d /application/forms/BootmenuCreate.php
parentConfig fertig (diff)
downloadpbs2-0e017ebdc1edbbf230f0f0160f103c39ef675725.tar.gz
pbs2-0e017ebdc1edbbf230f0f0160f103c39ef675725.tar.xz
pbs2-0e017ebdc1edbbf230f0f0160f103c39ef675725.zip
datenbank erweitert, BootMenu, Config fertig
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"'
+ ));
+
}