/** * Preparing global layout * * @return Mage_Core_Block_Abstract */ protected function _prepareLayout() { $this->setChild('add_button', $this->getLayout()->createBlock('Mage_Adminhtml_Block_Widget_Button')->setData(array('label' => Mage::helper('Mage_GoogleShopping_Helper_Data')->__('Add New Attribute'), 'class' => 'add', 'id' => 'add_new_attribute', 'on_click' => 'gContentAttribute.add()'))); $this->setChild('delete_button', $this->getLayout()->createBlock('Mage_Adminhtml_Block_Widget_Button')->setData(array('label' => Mage::helper('Mage_GoogleShopping_Helper_Data')->__('Remove'), 'class' => 'delete delete-product-option', 'on_click' => 'gContentAttribute.remove(event)'))); return parent::_prepareLayout(); }
protected function _prepareLayout() { $this->setChild('add_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('googlebase')->__('Add New Attribute'), 'class' => 'add', 'id' => 'add_new_attribute', 'on_click' => 'gBaseAttribute.add()'))); $this->setChild('delete_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('googlebase')->__('Remove'), 'class' => 'delete delete-product-option', 'on_click' => 'gBaseAttribute.remove(event)'))); parent::_prepareLayout(); }
/** * Preparing global layout * * @return Mage_Core_Block_Abstract */ protected function _prepareLayout() { $this->setChild('add_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(['label' => Mage::helper('gshoppingv2')->__('Add New Attribute'), 'class' => 'add', 'id' => 'add_new_attribute', 'on_click' => 'gContentAttribute.add()'])); $this->setChild('delete_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(['label' => Mage::helper('gshoppingv2')->__('Remove'), 'class' => 'delete delete-product-option', 'on_click' => 'gContentAttribute.remove(event)'])); return parent::_prepareLayout(); }