diff options
Diffstat (limited to 'application/forms/GroupEdit.php')
| -rw-r--r-- | application/forms/GroupEdit.php | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/application/forms/GroupEdit.php b/application/forms/GroupEdit.php deleted file mode 100644 index ef38d83..0000000 --- a/application/forms/GroupEdit.php +++ /dev/null @@ -1,52 +0,0 @@ -<?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"', - )); - } - - -} - |
