summaryrefslogtreecommitdiffstats
path: root/application/forms
diff options
context:
space:
mode:
authormichael pereira2011-03-05 13:12:23 +0100
committermichael pereira2011-03-05 13:12:23 +0100
commit92e5b7a7b6bb780ef5e788b7711f8a999ac80f41 (patch)
tree9886c2229205ea8478e9a0bf0ca9fc5fb8de68e8 /application/forms
parentMerge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff)
downloadpbs2-92e5b7a7b6bb780ef5e788b7711f8a999ac80f41.tar.gz
pbs2-92e5b7a7b6bb780ef5e788b7711f8a999ac80f41.tar.xz
pbs2-92e5b7a7b6bb780ef5e788b7711f8a999ac80f41.zip
bootos v1
Diffstat (limited to 'application/forms')
-rw-r--r--application/forms/AuthDelete.php28
-rw-r--r--application/forms/BootosCreate.php107
-rw-r--r--application/forms/BootosDelete.php13
-rw-r--r--application/forms/BootosEdit.php13
-rw-r--r--application/forms/BootosIndex.php13
5 files changed, 174 insertions, 0 deletions
diff --git a/application/forms/AuthDelete.php b/application/forms/AuthDelete.php
new file mode 100644
index 0000000..4e9c92d
--- /dev/null
+++ b/application/forms/AuthDelete.php
@@ -0,0 +1,28 @@
+<?php
+
+class Application_Form_AuthDelete extends Zend_Form
+{
+
+ public function init()
+ {
+ $this->setName("Delete");
+ $this->setMethod('post');
+
+ $this->addElement('text', 'ID', array(
+ 'filters' => array('StringTrim'),
+ 'validators' => array(
+ array('StringLength', false, array(0, 50)),
+ ),
+ 'required' => true,
+ 'label' => 'ID:',
+ ));
+ $this->addElement('submit', 'delete', array(
+ 'required' => false,
+ 'ignore' => true,
+ 'label' => 'Delete',
+ ));
+ }
+
+
+}
+
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',
+ ));
+ }
+
+
+}
+
diff --git a/application/forms/BootosDelete.php b/application/forms/BootosDelete.php
new file mode 100644
index 0000000..c62608f
--- /dev/null
+++ b/application/forms/BootosDelete.php
@@ -0,0 +1,13 @@
+<?php
+
+class Application_Form_BootosDelete extends Zend_Form
+{
+
+ public function init()
+ {
+ /* Form Elements & Other Definitions Here ... */
+ }
+
+
+}
+
diff --git a/application/forms/BootosEdit.php b/application/forms/BootosEdit.php
new file mode 100644
index 0000000..70f11da
--- /dev/null
+++ b/application/forms/BootosEdit.php
@@ -0,0 +1,13 @@
+<?php
+
+class Application_Form_BootosEdit extends Zend_Form
+{
+
+ public function init()
+ {
+ /* Form Elements & Other Definitions Here ... */
+ }
+
+
+}
+
diff --git a/application/forms/BootosIndex.php b/application/forms/BootosIndex.php
new file mode 100644
index 0000000..1e6505a
--- /dev/null
+++ b/application/forms/BootosIndex.php
@@ -0,0 +1,13 @@
+<?php
+
+class Application_Form_BootosIndex extends Zend_Form
+{
+
+ public function init()
+ {
+ /* Form Elements & Other Definitions Here ... */
+ }
+
+
+}
+