summaryrefslogtreecommitdiffstats
path: root/application/forms/GroupEdit.php
diff options
context:
space:
mode:
authorSimon2011-03-11 00:48:32 +0100
committerSimon2011-03-11 00:48:32 +0100
commit87239f3f5905fb5ca937faec449256a7801a1440 (patch)
treec76e923b6aec6fa0a4674fc4b287538d0b386ea9 /application/forms/GroupEdit.php
parentMerge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff)
parentMerge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff)
downloadpbs2-87239f3f5905fb5ca937faec449256a7801a1440.tar.gz
pbs2-87239f3f5905fb5ca937faec449256a7801a1440.tar.xz
pbs2-87239f3f5905fb5ca937faec449256a7801a1440.zip
Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2
Diffstat (limited to 'application/forms/GroupEdit.php')
-rw-r--r--application/forms/GroupEdit.php52
1 files changed, 52 insertions, 0 deletions
diff --git a/application/forms/GroupEdit.php b/application/forms/GroupEdit.php
new file mode 100644
index 0000000..ef38d83
--- /dev/null
+++ b/application/forms/GroupEdit.php
@@ -0,0 +1,52 @@
+<?php
+
+class Application_Form_GroupEdit extends Zend_Form
+{
+
+
+ public function init()
+ {
+ $this->setName("GroupEdit");
+ $this->setMethod('post');
+
+ $this->addElement('text', 'title', array(
+ 'filters' => array('StringTrim'),
+ 'validators' => array(
+ array('StringLength', false, array(0, 50)),
+ ),
+ 'required' => true,
+ 'label' => 'Title:',
+ 'value' => $_POST['title'],
+ ));
+
+ $this->addElement('text', 'description', array(
+ 'filters' => array('StringTrim'),
+ 'validators' => array(
+ array('StringLength', false, array(0, 140)),
+ ),
+ 'required' => false,
+ 'label' => 'Description:',
+ 'value' => $_POST['description'],
+ ));
+
+ $this->addElement('hidden', 'groupID', array(
+ 'value' => $_POST['groupID'],
+ ));
+
+ $this->addElement('submit', 'save', array(
+ 'required' => false,
+ 'ignore' => true,
+ 'label' => 'Save',
+ ));
+
+ $this->addElement('button', 'cancel', array(
+ 'required' => false,
+ 'ignore' => true,
+ 'label' => 'Cancel',
+ 'onclick' => 'location.href="/group/show"',
+ ));
+ }
+
+
+}
+