diff options
| author | Björn Geiger | 2011-03-23 19:31:03 +0100 |
|---|---|---|
| committer | Björn Geiger | 2011-03-23 19:31:03 +0100 |
| commit | f581446f90526dd3466becddd625d23bd1c26ed4 (patch) | |
| tree | 22b5708100e6c71e7cbd3a567527dcfc013fca91 /application/modules/dev/forms/RoleEdit.php | |
| parent | seriel liegt jetzt im root/ (diff) | |
| download | pbs2-f581446f90526dd3466becddd625d23bd1c26ed4.tar.gz pbs2-f581446f90526dd3466becddd625d23bd1c26ed4.tar.xz pbs2-f581446f90526dd3466becddd625d23bd1c26ed4.zip | |
Rollenverwaltung in Dev Modul
Diffstat (limited to 'application/modules/dev/forms/RoleEdit.php')
| -rw-r--r-- | application/modules/dev/forms/RoleEdit.php | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/application/modules/dev/forms/RoleEdit.php b/application/modules/dev/forms/RoleEdit.php new file mode 100644 index 0000000..2c79050 --- /dev/null +++ b/application/modules/dev/forms/RoleEdit.php @@ -0,0 +1,51 @@ +<?php + +class dev_Form_RoleEdit extends Zend_Form +{ + + public function init() + { + $this->setName("RoleEdit"); + $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="/dev/role/"', + )); + } + + +} + |
