From aaf8275e5ff92504357c5f3167a3f256d0d393ad Mon Sep 17 00:00:00 2001 From: Björn Geiger Date: Sun, 27 Mar 2011 16:44:55 +0200 Subject: Rollenverwaltung User Module --- application/modules/user/forms/RoleAdd.php | 50 ++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 application/modules/user/forms/RoleAdd.php (limited to 'application/modules/user/forms/RoleAdd.php') diff --git a/application/modules/user/forms/RoleAdd.php b/application/modules/user/forms/RoleAdd.php new file mode 100644 index 0000000..3b5200b --- /dev/null +++ b/application/modules/user/forms/RoleAdd.php @@ -0,0 +1,50 @@ +rightlist = $rightlist; + } + + public function init() + { + $this->setName("RoleAdd"); + $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', 'description', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 140)), + ), + 'required' => false, + 'label' => 'Description:', + )); + + $this->addElement('submit', 'add', array( + 'required' => false, + 'ignore' => true, + 'label' => 'Add', + )); + + $this->addElement('button', 'cancel', array( + 'required' => false, + 'ignore' => true, + 'label' => 'Cancel', + 'onclick' => 'location.href="/user/role/"', + )); + } + + +} + -- cgit v1.2.3-55-g7522