/**
  * After toHtml
  *
  * @param string $html
  * @return mixed|string
  */
 protected function _afterToHtml($html)
 {
     $html = parent::_afterToHtml($html);
     // Set a specific <tbody> id to be able to target children <tr>
     $html = str_replace("<tbody>", "<tbody id='slide_grid_tbody'>", $html);
     // Sortable JS template
     $html .= $this->getLayout()->createBlock('core/template')->setTemplate('antoinek/slider/js.phtml')->toHtml();
     return $html;
 }
 /**
  * Processing block html after rendering.
  * Add button to delete orphan points if customer has such points
  *
  * @param   string $html
  * @return  string
  */
 protected function _afterToHtml($html)
 {
     $html = parent::_afterToHtml($html);
     if ($this->_customerHasOrphanPoints) {
         $deleteOrhanPointsButton = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('enterprise_reward')->__('Delete Orphan Points'), 'onclick' => 'setLocation(\'' . $this->getDeleteOrphanPointsUrl() . '\')', 'class' => 'scalable delete'));
         $html .= $deleteOrhanPointsButton->toHtml();
     }
     return $html;
 }
示例#3
0
 protected function _afterToHtml($html)
 {
     return $this->_prependHtml() . parent::_afterToHtml($html) . $this->_appendHtml();
 }
示例#4
0
 protected function _afterToHtml($html)
 {
     return parent::_afterToHtml($html);
 }
示例#5
0
 protected function _afterToHtml($html)
 {
     $html = parent::_afterToHtml($html);
     return $html;
 }
示例#6
0
 protected function _afterToHtml($html)
 {
     $html = "<script>varienGrid.prototype.rowMouseOver = function(event){var element = Event.findElement(event, 'tr');Element.addClassName(element, 'on-mouse');element.style.cursor = 'default';}</script>" . $html;
     return parent::_afterToHtml($html);
 }