diff options
| author | michael pereira | 2011-03-05 18:59:46 +0100 |
|---|---|---|
| committer | michael pereira | 2011-03-05 18:59:46 +0100 |
| commit | aa1aea290b8034e3187a4f223cacb53ea7837a31 (patch) | |
| tree | fb1140701f4f7acddae9a7790bc91b7a9c253be3 /application/forms/BootosEdit.php | |
| parent | filter-oberffäche fertig, nun zur auswahl des bootmenus && funktion toArray ... (diff) | |
| download | pbs2-aa1aea290b8034e3187a4f223cacb53ea7837a31.tar.gz pbs2-aa1aea290b8034e3187a4f223cacb53ea7837a31.tar.xz pbs2-aa1aea290b8034e3187a4f223cacb53ea7837a31.zip | |
BootOS create, edit und delete done
Diffstat (limited to 'application/forms/BootosEdit.php')
| -rw-r--r-- | application/forms/BootosEdit.php | 103 |
1 files changed, 102 insertions, 1 deletions
diff --git a/application/forms/BootosEdit.php b/application/forms/BootosEdit.php index 70f11da..3bc522f 100644 --- a/application/forms/BootosEdit.php +++ b/application/forms/BootosEdit.php @@ -5,9 +5,110 @@ class Application_Form_BootosEdit extends Zend_Form public function init() { - /* Form Elements & Other Definitions Here ... */ + $this->setName("BootOsEdit"); + $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', 'configID', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => false, + 'label' => 'ConfigID:', + )); + + $this->addElement('text', 'groupID', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'GroupID:', + 'value' => '1', + )); + + $this->addElement('text', 'path_init', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'Init-Path:', + )); + + $this->addElement('text', 'path_kernel', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'Kernel-Path:', + )); + + $this->addElement('text', 'defaultkcl', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'Default-KCL:', + )); + + $this->addElement('textarea', 'description', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => false, + 'label' => 'Description:', + )); + + $date = new DateTime(); + $date->add(new DateInterval('P1Y')); + $this->addElement('text', 'expires', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => false, + 'label' => 'Expires:', + 'value' => $date->format('Y-m-d'), + )); + + + $this->addElement('text', 'public', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'Public-Level:', + )); + + $this->addElement('submit', 'editbootos', array( + 'required' => false, + 'ignore' => true, + 'label' => 'Edit BootOS', + )); + + $this->addElement('button', 'Cancel', array( + 'onclick' => 'self.location="/bootos"' + )); + } } + + |
