diff options
| author | sf34 | 2011-03-05 19:57:06 +0100 |
|---|---|---|
| committer | sf34 | 2011-03-05 19:57:06 +0100 |
| commit | 5016fdbdeacefa697856c3576f7b57537536f031 (patch) | |
| tree | 02cda90db98a659eaec19eb7576605bbb8bfbd5d /application/forms/BootosEdit.php | |
| parent | Primary Key inn filterentries eingeführt um meherere Elemente eines Filterty... (diff) | |
| parent | BootOS create, edit und delete done (diff) | |
| download | pbs2-5016fdbdeacefa697856c3576f7b57537536f031.tar.gz pbs2-5016fdbdeacefa697856c3576f7b57537536f031.tar.xz pbs2-5016fdbdeacefa697856c3576f7b57537536f031.zip | |
Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2
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"' + )); + } } + + |
