summaryrefslogtreecommitdiffstats
path: root/application/modules/user/forms/Pool.php
diff options
context:
space:
mode:
authormichael pereira2011-04-01 16:51:07 +0200
committermichael pereira2011-04-01 16:51:07 +0200
commit0576a9832661cfbfb29e1d59b72f092740388fa7 (patch)
tree2cbd79177900de8b8ede455156c2e13a20c94697 /application/modules/user/forms/Pool.php
parentBootmenu & BootOs Controller (diff)
parentPagination in ettlichen Controllern + aufgeräumt (diff)
downloadpbs2-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.php26
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;
- }
}