diff options
| author | michael pereira | 2011-04-01 16:51:07 +0200 |
|---|---|---|
| committer | michael pereira | 2011-04-01 16:51:07 +0200 |
| commit | 0576a9832661cfbfb29e1d59b72f092740388fa7 (patch) | |
| tree | 2cbd79177900de8b8ede455156c2e13a20c94697 /application/modules/user/forms/Pool.php | |
| parent | Bootmenu & BootOs Controller (diff) | |
| parent | Pagination in ettlichen Controllern + aufgerÀumt (diff) | |
| download | pbs2-0576a9832661cfbfb29e1d59b72f092740388fa7.tar.gz pbs2-0576a9832661cfbfb29e1d59b72f092740388fa7.tar.xz pbs2-0576a9832661cfbfb29e1d59b72f092740388fa7.zip | |
merge
Diffstat (limited to 'application/modules/user/forms/Pool.php')
| -rw-r--r-- | application/modules/user/forms/Pool.php | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/application/modules/user/forms/Pool.php b/application/modules/user/forms/Pool.php index 055d0a7..be2f6c6 100644 --- a/application/modules/user/forms/Pool.php +++ b/application/modules/user/forms/Pool.php @@ -2,6 +2,15 @@ class user_Form_Pool extends Zend_Form { + private $buttontext = 'Save'; + private $page; + + public function setButtontext($v){ + $this->buttontext = $v; + } + public function setPage($page){ + $this->page = $page; + } public function init() { @@ -24,9 +33,8 @@ class user_Form_Pool extends Zend_Form 'required' => false, 'label' => 'Description:', )); - // TODO: Add target of Filter - $this->addElement('text', 'location', array( + $this->addElement('text', 'location', array( 'filters' => array('StringTrim'), 'validators' => array( array('StringLength', false, array(0, 30)), @@ -43,20 +51,8 @@ class user_Form_Pool extends Zend_Form $this->addElement('button', 'Cancel', array( 'onclick' => 'self.location="/user/pool/index/page/'.$this->page.'"' - )); - - $this->addElement('hidden','page', array( - 'value' => $this->page - )); + )); } - private $buttontext = 'Save'; - function setButtontext($v){ - $this->buttontext = $v; - } - private $page; - function setPage($page){ - $this->page = $page; - } } |
