From 0e017ebdc1edbbf230f0f0160f103c39ef675725 Mon Sep 17 00:00:00 2001 From: michael pereira Date: Sun, 6 Mar 2011 20:12:36 +0100 Subject: datenbank erweitert, BootMenu, Config fertig --- application/forms/BootmenuEdit.php | 36 +++++++++++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) (limited to 'application/forms/BootmenuEdit.php') diff --git a/application/forms/BootmenuEdit.php b/application/forms/BootmenuEdit.php index 3bc0a1d..a3733bf 100644 --- a/application/forms/BootmenuEdit.php +++ b/application/forms/BootmenuEdit.php @@ -3,11 +3,41 @@ class Application_Form_BootmenuEdit extends Zend_Form { - public function init() + public function init() { - /* Form Elements & Other Definitions Here ... */ - } + $this->setName("BootMenuEdit"); + $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', 'editbootmenu', array( + 'required' => false, + 'ignore' => true, + 'label' => 'Edit BootMenu', + )); + + $this->addElement('button', 'Cancel', array( + 'onclick' => 'self.location="/bootmenu"' + )); + } } -- cgit v1.2.3-55-g7522