protected function _prepareLayout() { parent::_prepareLayout(); /* @var $button Mana_Admin_Block_Grid_Action */ $button = $this->getLayout()->createBlock('mana_admin/v2_action', "{$this->getNameInLayout()}.close")->setData(array('label' => $this->__('Close'), 'class' => 'back')); $this->setChild('close_button', $button); $button = $this->getLayout()->createBlock('mana_admin/v2_action', "{$this->getNameInLayout()}.apply")->setData(array('label' => $this->__('Apply'), 'class' => 'save')); $this->setChild('apply_button', $button); $button = $this->getLayout()->createBlock('mana_admin/v2_action', "{$this->getNameInLayout()}.save")->setData(array('label' => $this->__('Save'), 'class' => 'save')); $this->setChild('save_button', $button); // create client-side block $this->_prepareClientSideBlock(); return $this; }
protected function _prepareLayout() { parent::_prepareLayout(); /* @var $button Mana_Admin_Block_Grid_Action */ $button = $this->getLayout()->createBlock('mana_admin/v2_action', "{$this->getNameInLayout()}.close")->setData(array('label' => $this->__('Close'), 'class' => 'back')); $this->setChild('close_button', $button); $button = $this->getLayout()->createBlock('mana_admin/v2_action', "{$this->getNameInLayout()}.duplicate")->setData(array('label' => $this->__('Duplicate'), 'class' => 'add' . ($this->adminHelper()->isGlobal() ? '' : ' disabled'))); $this->setChild('duplicate_button', $button); $button = $this->getLayout()->createBlock('mana_admin/v2_action', "{$this->getNameInLayout()}.delete")->setData(array('label' => $this->__('Delete'), 'class' => 'delete' . ($this->adminHelper()->isGlobal() && $this->getFlatModel()->getStatus() != Mana_Seo_Model_Schema::STATUS_ACTIVE ? '' : ' disabled'))); $this->setChild('delete_button', $button); $button = $this->getLayout()->createBlock('mana_admin/v2_action', "{$this->getNameInLayout()}.apply")->setData(array('label' => $this->__('Apply'), 'class' => 'save')); $this->setChild('apply_button', $button); $button = $this->getLayout()->createBlock('mana_admin/v2_action', "{$this->getNameInLayout()}.save")->setData(array('label' => $this->__('Save'), 'class' => 'save')); $this->setChild('save_button', $button); // create client-side block $this->_prepareClientSideBlock(); return $this; }