summaryrefslogtreecommitdiffstats
path: root/application/forms/Pool.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/forms/Pool.php')
-rw-r--r--application/forms/Pool.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/application/forms/Pool.php b/application/forms/Pool.php
index 0cef533..be30444 100644
--- a/application/forms/Pool.php
+++ b/application/forms/Pool.php
@@ -35,9 +35,17 @@ class Application_Form_Pool extends Zend_Form
$this->addElement('submit', 'add', array(
'required' => false,
'ignore' => true,
- 'label' => 'Save',
+ 'label' => $this->buttontext,
+ ));
+
+ $this->addElement('button', 'Cancel', array(
+ 'onclick' => 'self.location="/pool"'
));
}
+ private $buttontext = 'Save';
+ function setButtontext($v){
+ $this->buttontext = $v;
+ }
}