It's a form's responsibility how its submit button should look like

refs #5525
This commit is contained in:
Johannes Meyer 2014-07-18 09:54:36 +02:00
parent 6ac471c598
commit f4ff2c90f2
1 changed files with 13 additions and 1 deletions

View File

@ -132,7 +132,7 @@ class Form extends Zend_Form
{
if (false === $this->created) {
$this->addElements($this->createElements($formData));
$this->addCsrfToken();
$this->addCsrfToken()->addSubmitButton();
$this->created = true;
}
@ -153,6 +153,18 @@ class Form extends Zend_Form
return array();
}
/**
* Add a submit button to this form
*
* Intended to be implemented by concrete form classes.
*
* @return self
*/
public function addSubmitButton()
{
return $this;
}
/**
* Add a new element
*