addElement( 'select', 'status', [ 'label' => 'Status:', 'multiOptions' => $dataObj->getOrderStatuses(), 'decorators' => ['ViewHelper'], ] ); $this->addElement( 'select', 'paid', [ 'label' => 'Paid:', 'multiOptions' => $dataObj->getPaidStatuses(), 'decorators' => ['ViewHelper'], ] ); $this->addElement('textarea', 'userAdditionalNote', ['decorators' => ['ViewHelper']]); $this->addElement('textarea', 'adminAdditionalNote', ['decorators' => ['ViewHelper']]); return $this; } protected function _initControllerAction() { parent::_initControllerAction(); if ($this->getElement('action')) { $this->getElement('action')->removeDecorator('HtmlTag')->removeDecorator('Label'); } return $this; } protected function _initPrimaryKeyElements() { parent::_initPrimaryKeyElements(); foreach (array_keys($this->_primaryKey) as $element) { $this->getElement($element)->removeDecorator('HtmlTag')->removeDecorator('Label'); } return $this; } protected function _initButtons() { parent::_initButtons(); if (!$this->_hasButtons) { return $this; } $this->getDisplayGroup('submitGroup')->removeDecorator('Label'); $this->getDisplayGroup('submitGroup')->removeDecorator('DtDdWrapper'); $this->getDisplayGroup('submitGroup')->addDecorator( ['divtag' => 'HtmlTag'], ['tag' => 'div', 'id' => 'submitGroup-element'] ); return $this; } }