QuickForm: add moveSubmitToBottom hack
This commit is contained in:
parent
e7c6bfbfc3
commit
1fd97c8606
|
@ -78,6 +78,16 @@ abstract class QuickForm extends Zend_Form
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: This is ugly, we need to defer button creation
|
||||||
|
protected function moveSubmitToBottom()
|
||||||
|
{
|
||||||
|
$label = $this->getSubmitLabel();
|
||||||
|
if ($submit = $this->getElement($label)) {
|
||||||
|
$this->removeElement($label);
|
||||||
|
$this->addElement($submit);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected function createIdElement()
|
protected function createIdElement()
|
||||||
{
|
{
|
||||||
$this->detectName();
|
$this->detectName();
|
||||||
|
|
Loading…
Reference in New Issue