diff options
| author | michael pereira | 2011-03-07 02:17:29 +0100 |
|---|---|---|
| committer | michael pereira | 2011-03-07 02:17:29 +0100 |
| commit | f7996a02542d145a682dcb1c059bd05cc573a942 (patch) | |
| tree | 98e53b783dec4935526b91ad5d05eb997a72a4bc /application/forms/BootisoCreate.php | |
| parent | bootstrap für benutzung von globalem css vorbereitet (diff) | |
| download | pbs2-f7996a02542d145a682dcb1c059bd05cc573a942.tar.gz pbs2-f7996a02542d145a682dcb1c059bd05cc573a942.tar.xz pbs2-f7996a02542d145a682dcb1c059bd05cc573a942.zip | |
BootIso Interface fertig
Diffstat (limited to 'application/forms/BootisoCreate.php')
| -rw-r--r-- | application/forms/BootisoCreate.php | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/application/forms/BootisoCreate.php b/application/forms/BootisoCreate.php new file mode 100644 index 0000000..035205d --- /dev/null +++ b/application/forms/BootisoCreate.php @@ -0,0 +1,83 @@ +<?php + +class Application_Form_BootisoCreate extends Zend_Form +{ + + public function init() + { + $this->setName("BootIsoCreate"); + $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('text', 'path', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'Path:', + )); + + $this->addElement('text', 'serialnumber', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'Serialnumber:', + )); + + $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', 'createbootiso', array( + 'required' => false, + 'ignore' => true, + 'label' => 'Create BootISO', + )); + + $this->addElement('button', 'Cancel', array( + 'onclick' => 'self.location="/bootiso"' + )); + + } + + +} + |
