protected function _toHtml() { $html = ''; //$html = '<form id="qty_save_form" method="post" action="'.$this->getUrl('*/gridqty/save').'"><input type="hidden" name="form_key" value="'.$this->getFormKey().'" />'; $html .= parent::_toHtml(); //$html .= '</form>'; return $html; }
protected function _toHtml() { if (Mage::getSingleton('aitpermissions/role')->isPermissionsEnabled()) { $allowedWebisteIds = Mage::getSingleton('aitpermissions/role')->getAllowedWebsiteIds(); if (count($allowedWebisteIds) <= 1) { unset($this->_columns['websites']); } } return parent::_toHtml(); }