addElement( 'select', 'status', array( 'label' => 'Status:', 'multiOptions' => $dataObj->getOrderStatuses(), 'decorators' => array('ViewHelper') ) ); $this->addElement( 'select', 'paid', array( 'label' => 'Paid:', 'multiOptions' => $dataObj->getPaidStatuses(), 'decorators' => array('ViewHelper') ) ); $this->addElement('textarea', 'userAdditionalNote', array('decorators' => array('ViewHelper'))); $this->addElement('textarea', 'adminAdditionalNote', array('decorators' => array('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( array('divtag' => 'HtmlTag'), array('tag'=>'div', 'id' => 'submitGroup-element') ); return $this; } }