_objectId = 'id'; $this->_blockGroup = 'aw_hdu3'; $this->_controller = 'adminhtml_ticket'; parent::__construct(); $this->_removeButton('reset'); $this->_removeButton('save'); } protected function _prepareLayout() { $this->_addButton( 'assign', array( 'label' => $this->__('Assign'), 'onclick' => "awHDU3TicketAssigneePopup.show();", ), 10 ); parent::_prepareLayout(); } /** * @return string */ public function getHeaderText() { /** @var AW_Helpdesk3_Model_Ticket $ticket */ $ticket = Mage::registry('current_ticket'); return $this->__("Details of '%s' [%s]", $this->escapeHtml($ticket->getSubject()), $ticket->getUid()); } /** * @return string */ public function getHeaderCssClass() { return 'head-' . strtr($this->_controller, '_', '-'); } /** * Prepare html output * * @return string */ protected function _toHtml() { $html = parent::_toHtml(); $html .= $this->_getPopupHtml(); return $html; } /** * @return string */ protected function _getPopupHtml() { $content = Mage::app()->getLayout()->createBlock('aw_hdu3/adminhtml_ticket_edit_popup_assignee') ->toHtml() ; $titles = array( 'btnCancel' => Mage::helper('aw_hdu3')->__('Cancel'), 'btnDone' => Mage::helper('aw_hdu3')->__('Done'), 'header' => Mage::helper('aw_hdu3')->__('Assign Ticket') ); $url = $this->getUrl( 'helpdesk_admin/adminhtml_ticket/ajaxChangeAssignee', array('id' => Mage::registry('current_ticket')->getId()) ); $result = ""; return $result; } }