From d0d5a894f4e8219c33599697a1dacad56d1e363f Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 2 Mar 2011 17:17:12 +0100 Subject: Neue Filter hinzufügen --- application/forms/FilterAdd.php | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'application/forms') diff --git a/application/forms/FilterAdd.php b/application/forms/FilterAdd.php index 969f07b..825d3f2 100644 --- a/application/forms/FilterAdd.php +++ b/application/forms/FilterAdd.php @@ -5,7 +5,7 @@ class Application_Form_FilterAdd extends Zend_Form public function init() { - $this->setName("Register"); + $this->setName("Add Filter"); $this->setMethod('post'); $this->addElement('text', 'title', array( @@ -16,10 +16,23 @@ class Application_Form_FilterAdd extends Zend_Form 'required' => true, 'label' => 'Title:', )); - $this->addElement('submit', 'register', array( + $this->addElement('textarea', 'description', array( + 'filters' => array('StringTrim'), + 'required' => true, + 'label' => 'Description:', + )); + $this->addElement('text', 'priority', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'Priority:', + )); + $this->addElement('submit', 'add', array( 'required' => false, 'ignore' => true, - 'label' => 'Login', + 'label' => 'Add Filter', )); } -- cgit v1.2.3-55-g7522