QuickForm: add moveSubmitToBottom hack

This commit is contained in:
Thomas Gelf 2015-07-21 15:13:42 +02:00
parent e7c6bfbfc3
commit 1fd97c8606
1 changed files with 10 additions and 0 deletions

View File

@ -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()
{
$this->detectName();