/** * Initialize tabs and define tabs block settings */ public function _construct() { parent::_construct(); $this->setId('theme_tabs'); $this->setDestElementId('edit_form'); $this->setTitle($this->__('Theme')); }
/** * Initialize tab * */ protected function _construct() { parent::_construct(); $this->setId('billing_agreement_view_tabs'); $this->setDestElementId('billing_agreement_view'); $this->setTitle($this->__('Billing Agreement View')); }
protected function _prepareLayout() { $role = Mage::registry('current_role'); $this->addTab('info', $this->getLayout()->createBlock('Mage_User_Block_Role_Tab_Info')->setRole($role)->setActive(true)); if ($role->getId()) { $this->addTab('roles', array('label' => Mage::helper('Mage_User_Helper_Data')->__('Role Users'), 'title' => Mage::helper('Mage_User_Helper_Data')->__('Role Users'), 'content' => $this->getLayout()->createBlock('Mage_User_Block_Role_Tab_Users', 'role.users.grid')->toHtml())); } return parent::_prepareLayout(); }
/** * Before to HTML. * * @return Mage_Core_Block_Abstract */ protected function _beforeToHtml() { /** @var Mage_Webapi_Block_Adminhtml_User_Edit_Tab_Main $mainTab */ $mainTab = $this->getLayout()->getBlock('webapi.user.edit.tab.main'); $mainTab->setApiUser($this->getApiUser()); $this->addTab('main_section', array('label' => $this->__('User Info'), 'title' => $this->__('User Info'), 'content' => $mainTab->toHtml(), 'active' => true)); $rolesGrid = $this->getLayout()->getBlock('webapi.user.edit.tab.roles.grid'); $this->addTab('roles_section', array('label' => $this->__('User Role'), 'title' => $this->__('User Role'), 'content' => $rolesGrid->toHtml())); return parent::_beforeToHtml(); }
/** * Prepare child blocks. * * @return Mage_Core_Block_Abstract */ protected function _beforeToHtml() { /** @var Mage_Webapi_Block_Adminhtml_Role_Edit_Tab_Main $mainBlock */ $mainBlock = $this->getLayout()->getBlock('webapi.role.edit.tab.main'); $mainBlock->setApiRole($this->getApiRole()); $this->addTab('main_section', array('label' => $this->__('Role Info'), 'title' => $this->__('Role Info'), 'content' => $mainBlock->toHtml(), 'active' => true)); /** @var Mage_Webapi_Block_Adminhtml_Role_Edit_Tab_Resource $resourceBlock */ $resourceBlock = $this->getLayout()->getBlock('webapi.role.edit.tab.resource'); $resourceBlock->setApiRole($this->getApiRole()); $this->addTab('resource_section', array('label' => $this->__('Resources'), 'title' => $this->__('Resources'), 'content' => $resourceBlock->toHtml())); if ($this->getApiRole() && $this->getApiRole()->getRoleId() > 0) { $usersGrid = $this->getLayout()->getBlock('webapi.role.edit.tab.users.grid'); $this->addTab('user_section', array('label' => $this->__('Users'), 'title' => $this->__('Users'), 'content' => $usersGrid->toHtml())); } return parent::_beforeToHtml(); }
/** * Add content container to template * * @return string */ protected function _toHtml() { return parent::_toHtml() . '<div id="' . $this->getDestElementId() . '"><div>'; }
protected function _prepareLayout() { $this->setChild('userGrid', $this->getLayout()->createBlock('Mage_User_Block_Role_Grid_User', 'roleUsersGrid')); return parent::_prepareLayout(); }
protected function _beforeToHtml() { $this->addTab('main_section', array('label' => Mage::helper('Mage_User_Helper_Data')->__('User Info'), 'title' => Mage::helper('Mage_User_Helper_Data')->__('User Info'), 'content' => $this->getLayout()->createBlock('Mage_User_Block_User_Edit_Tab_Main')->toHtml(), 'active' => true)); $this->addTab('roles_section', array('label' => Mage::helper('Mage_User_Helper_Data')->__('User Role'), 'title' => Mage::helper('Mage_User_Helper_Data')->__('User Role'), 'content' => $this->getLayout()->createBlock('Mage_User_Block_User_Edit_Tab_Roles', 'user.roles.grid')->toHtml())); return parent::_beforeToHtml(); }
protected function _construct() { parent::_construct(); $this->setId('system_config_dwstree'); $this->setDestElementId('system_config_form'); }