mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +02:00
It's a form's responsibility how its submit button should look like
refs #5525
This commit is contained in:
parent
6ac471c598
commit
f4ff2c90f2
@ -132,7 +132,7 @@ class Form extends Zend_Form
|
|||||||
{
|
{
|
||||||
if (false === $this->created) {
|
if (false === $this->created) {
|
||||||
$this->addElements($this->createElements($formData));
|
$this->addElements($this->createElements($formData));
|
||||||
$this->addCsrfToken();
|
$this->addCsrfToken()->addSubmitButton();
|
||||||
$this->created = true;
|
$this->created = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -153,6 +153,18 @@ class Form extends Zend_Form
|
|||||||
return array();
|
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
|
* Add a new element
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user