diff options
| author | michael pereira | 2011-03-11 00:47:11 +0100 |
|---|---|---|
| committer | michael pereira | 2011-03-11 00:47:11 +0100 |
| commit | 9610ae543038c263f657232d158476788f952144 (patch) | |
| tree | e3ce7a6ab6ab80c1c913da9f27a4417c1464c2d2 /application/forms/GroupEdit.php | |
| parent | postinit.local geaendert (diff) | |
| parent | so geändert, dass nur im eingeloggten Zustand verfügbar (diff) | |
| download | pbs2-9610ae543038c263f657232d158476788f952144.tar.gz pbs2-9610ae543038c263f657232d158476788f952144.tar.xz pbs2-9610ae543038c263f657232d158476788f952144.zip | |
Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2
Diffstat (limited to 'application/forms/GroupEdit.php')
| -rw-r--r-- | application/forms/GroupEdit.php | 52 |
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"', + )); + } + + +} + |
