From 7be4355001156faed62c71492234cba2c5bf96b4 Mon Sep 17 00:00:00 2001 From: Björn Geiger Date: Thu, 10 Mar 2011 22:10:05 +0100 Subject: Benutzervewaltung, Gruppenverwaltung, Membershipverwaltung und noch leerer RoleController --- application/forms/GroupEdit.php | 52 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 application/forms/GroupEdit.php (limited to 'application/forms/GroupEdit.php') 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 @@ +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"', + )); + } + + +} + -- cgit v1.2.3-55-g7522