summaryrefslogtreecommitdiffstats
path: root/application/forms/BootosCreate.php
diff options
context:
space:
mode:
authorSimon2011-03-05 13:28:13 +0100
committerSimon2011-03-05 13:28:13 +0100
commit648f1ac9a60705a5a8ce0c6021657d9060cd45aa (patch)
treea9b221cb64ccdd1583dc0991369473a9347a7421 /application/forms/BootosCreate.php
parentfilterentriesmapper fürs löschen einzelner datensätze vorbereiten (diff)
parent.zfproject fix (diff)
downloadpbs2-648f1ac9a60705a5a8ce0c6021657d9060cd45aa.tar.gz
pbs2-648f1ac9a60705a5a8ce0c6021657d9060cd45aa.tar.xz
pbs2-648f1ac9a60705a5a8ce0c6021657d9060cd45aa.zip
Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2
Diffstat (limited to 'application/forms/BootosCreate.php')
-rw-r--r--application/forms/BootosCreate.php107
1 files changed, 107 insertions, 0 deletions
diff --git a/application/forms/BootosCreate.php b/application/forms/BootosCreate.php
new file mode 100644
index 0000000..ca279a0
--- /dev/null
+++ b/application/forms/BootosCreate.php
@@ -0,0 +1,107 @@
+<?php
+
+class Application_Form_BootosCreate extends Zend_Form
+{
+
+ public function init()
+ {
+ $this->setName("BootOsCreate");
+ $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', 'createbootos', array(
+ 'required' => false,
+ 'ignore' => true,
+ 'label' => 'Create BootOS',
+ ));
+ }
+
+
+}
+