summaryrefslogtreecommitdiffstats
path: root/application/modules/user/forms/Pool.php
diff options
context:
space:
mode:
authorSimon2011-04-01 16:34:13 +0200
committerSimon2011-04-01 16:34:13 +0200
commitcd230aefd78797219cb3814cda29fc8178520a22 (patch)
tree9e460a6493323e35a98fd9921be680c70a3c541d /application/modules/user/forms/Pool.php
parentMerge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff)
downloadpbs2-cd230aefd78797219cb3814cda29fc8178520a22.tar.gz
pbs2-cd230aefd78797219cb3814cda29fc8178520a22.tar.xz
pbs2-cd230aefd78797219cb3814cda29fc8178520a22.zip
Pagination in ettlichen Controllern + aufgeräumt
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;
- }
}