public function __construct() { parent::__construct(); // Initialization block //------------------------------ $this->setId('account'); $this->_blockGroup = 'M2ePro'; $this->_controller = 'adminhtml_common_account'; //------------------------------ // Set header text //------------------------------ $this->_headerText = Mage::helper('M2ePro')->__('Accounts'); //------------------------------ // Set buttons actions //------------------------------ $this->removeButton('back'); $this->removeButton('reset'); $this->removeButton('delete'); $this->removeButton('add'); $this->removeButton('save'); $this->removeButton('edit'); //------------------------------ $this->_addButton('add', array('label' => Mage::helper('M2ePro')->__('Add Account'), 'onclick' => $this->getAddButtonOnClickAction(), 'class' => 'add add-button-drop-down')); //------------------------------ }
public function __construct() { parent::__construct(); // Initialization block //------------------------------ $this->setId('templateSynchronization'); $this->_blockGroup = 'M2ePro'; $this->_controller = 'adminhtml_common_template_synchronization'; //------------------------------ // Set header text //------------------------------ $this->_headerText = Mage::helper('M2ePro')->__('Synchronization Templates'); //------------------------------ // Set buttons actions //------------------------------ $this->removeButton('back'); $this->removeButton('reset'); $this->removeButton('delete'); $this->removeButton('add'); $this->removeButton('save'); $this->removeButton('edit'); //------------------------------ //------------------------------ $url = $this->getUrl('*/adminhtml_common_listing/index'); $this->_addButton('goto_listings', array('label' => Mage::helper('M2ePro')->__('Listings'), 'onclick' => 'setLocation(\'' . $url . '\')', 'class' => 'button_link')); //------------------------------ //------------------------------ $url = $this->getUrl('*/adminhtml_common_synchronization/index'); $this->_addButton('goto_synchronization', array('label' => Mage::helper('M2ePro')->__('Synchronization Settings'), 'onclick' => 'setLocation(\'' . $url . '\')', 'class' => 'button_link')); //------------------------------ //------------------------------ $this->_addButton('add', array('label' => Mage::helper('M2ePro')->__('Add Synchronization Template'), 'onclick' => $this->getAddButtonOnClickAction(), 'class' => 'add add-button-drop-down')); //------------------------------ }
public function getGridHtml() { $helpBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_common_template_synchronization_help'); return $helpBlock->toHtml() . parent::getGridHtml(); }
public function getGridHtml() { $helpBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_common_account_help'); return $helpBlock->toHtml() . parent::getGridHtml(); }