diff options
author | Simon | 2011-03-02 17:17:12 +0100 |
---|---|---|
committer | Simon | 2011-03-02 17:17:12 +0100 |
commit | d0d5a894f4e8219c33599697a1dacad56d1e363f (patch) | |
tree | 2675d7ef5936eaf19c88af966486f5f57303b94b /application/forms/FilterAdd.php | |
parent | fixing git (diff) | |
download | pbs2-d0d5a894f4e8219c33599697a1dacad56d1e363f.tar.gz pbs2-d0d5a894f4e8219c33599697a1dacad56d1e363f.tar.xz pbs2-d0d5a894f4e8219c33599697a1dacad56d1e363f.zip |
Neue Filter hinzufügen
Diffstat (limited to 'application/forms/FilterAdd.php')
-rw-r--r-- | application/forms/FilterAdd.php | 19 |
1 files changed, 16 insertions, 3 deletions
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', )); } |