Exemple #1
0
 /**
  * @return $this
  */
 protected function _beforeToHtml()
 {
     $this->addTab('main', array('label' => __('Properties'), 'title' => __('Properties'), 'content' => $this->getChildHtml('main'), 'active' => true));
     $this->addTab('labels', array('label' => __('Manage Labels'), 'title' => __('Manage Labels'), 'content' => $this->getChildHtml('labels')));
     $this->addTab('front', array('label' => __('Frontend Properties'), 'title' => __('Frontend Properties'), 'content' => $this->getChildHtml('front')));
     return parent::_beforeToHtml();
 }
Exemple #2
0
 /**
  * {@inheritdoc}
  */
 protected function _beforeToHtml()
 {
     $this->addTab('general_section', ['label' => __('General Information'), 'content' => $this->getLayout()->createBlock('Mirasvit\\Blog\\Block\\Adminhtml\\Post\\Edit\\Tab\\General')->toHtml()]);
     $this->addTab('meta_section', ['label' => __('Search Engine Optimization'), 'content' => $this->getLayout()->createBlock('Mirasvit\\Blog\\Block\\Adminhtml\\Post\\Edit\\Tab\\Meta')->toHtml()]);
     $this->addTab('products_section', ['label' => __('Related Products'), 'content' => $this->getLayout()->createBlock('Mirasvit\\Blog\\Block\\Adminhtml\\Post\\Edit\\Tab\\Products')->toHtml()]);
     return parent::_beforeToHtml();
 }
Exemple #3
0
 /**
  * Set tabs
  *
  * @return \Magento\Connect\Block\Adminhtml\Extension\Custom\Edit\Tabs
  */
 protected function _beforeToHtml()
 {
     //        $this->addTab('package', array(
     //            'label'     => __('Package Info'),
     //            'content'   => $this->_getTabHtml('package'),
     //            'active'    => true,
     //        ));
     //
     //        $this->addTab('release', array(
     //            'label'     => __('Release Info'),
     //            'content'   => $this->_getTabHtml('release'),
     //        ));
     //
     //        $this->addTab('maintainers', array(
     //            'label'     => __('Authors'),
     //            'content'   => $this->_getTabHtml('authors'),
     //        ));
     //
     //        $this->addTab('depends', array(
     //            'label'     => __('Dependencies'),
     //            'content'   => $this->_getTabHtml('depends'),
     //        ));
     //
     //        $this->addTab('contents', array(
     //            'label'     => __('Contents'),
     //            'content'   => $this->_getTabHtml('contents'),
     //        ));
     //
     //        $this->addTab('load', array(
     //            'label'     => __('Load local Package'),
     //            'class'     => 'ajax',
     //            'url'       => $this->getUrl('adminhtml/*/loadtab', array('_current' => true)),
     //        ));
     return parent::_beforeToHtml();
 }
Exemple #4
0
 /**
  * {@inheritdoc}
  */
 protected function _beforeToHtml()
 {
     $generalBlock = '\\Mirasvit\\Search\\Block\\Adminhtml\\Index\\Edit\\Tab\\General';
     $attributesBlock = '\\Mirasvit\\Search\\Block\\Adminhtml\\Index\\Edit\\Tab\\Attributes';
     $propertiesBlock = '\\Mirasvit\\Search\\Block\\Adminhtml\\Index\\Edit\\Tab\\Properties';
     $this->addTab('general', ['label' => __('General Information'), 'title' => __('General Information'), 'content' => $this->getLayout()->createBlock($generalBlock)->toHtml()]);
     if ($this->getModel()->getId()) {
         $this->addTab('attributes', ['label' => __('Searchable Attributes'), 'title' => __('Searchable Attributes'), 'content' => $this->getLayout()->createBlock($attributesBlock)->toHtml()]);
         if (count($this->getModel()->getIndexInstance()->getFieldsets())) {
             $this->addTab('properties', ['label' => __('Additional Options'), 'title' => __('Additional Options'), 'content' => $this->getLayout()->createBlock($propertiesBlock)->toHtml()]);
         }
     }
     return parent::_beforeToHtml();
 }
Exemple #5
0
 /**
  * @return $this
  */
 protected function _beforeToHtml()
 {
     $this->addTab('main_section', ['label' => __('User Info'), 'title' => __('User Info'), 'content' => $this->getLayout()->createBlock('Magento\\User\\Block\\User\\Edit\\Tab\\Main')->toHtml(), 'active' => true]);
     $this->addTab('roles_section', ['label' => __('User Role'), 'title' => __('User Role'), 'content' => $this->getLayout()->createBlock('Magento\\User\\Block\\User\\Edit\\Tab\\Roles', 'user.roles.grid')->toHtml()]);
     return parent::_beforeToHtml();
 }
Exemple #6
0
 /**
  * @return $this
  */
 protected function _beforeToHtml()
 {
     $this->addTab('ip_info', ['label' => __('General'), 'title' => __('General'), 'content' => $this->getLayout()->createBlock('Rapidmage\\Firewall\\Block\\Adminhtml\\Blackip\\Edit\\Tab\\Info')->toHtml(), 'active' => true]);
     return parent::_beforeToHtml();
 }
Exemple #7
0
 /**
  * @return $this
  */
 protected function _beforeToHtml()
 {
     $this->addTab('manufacturer_info', ['label' => __('General'), 'title' => __('General'), 'content' => $this->getLayout()->createBlock('Ktpl\\Manufacturer\\Block\\Adminhtml\\Manufacturer\\Edit\\Tab\\Info')->toHtml(), 'active' => true]);
     $this->addTab('related', ['label' => __('Related Products'), 'url' => $this->getUrl('catalog/product/related', ['_current' => true]), 'class' => 'ajax']);
     return parent::_beforeToHtml();
 }
Exemple #8
0
 protected function _beforeToHtml()
 {
     $this->addTab('form_section', ['label' => __('Team Info'), 'title' => __('Team Info'), 'content' => $this->getLayout()->createBlock('Dys\\Team\\Block\\Adminhtml\\Team\\Edit\\Tab\\Main')->toHtml()]);
     $this->addTab('form_content', ['label' => __('Team Content'), 'title' => __('Team Content'), 'content' => $this->getLayout()->createBlock('Dys\\Team\\Block\\Adminhtml\\Team\\Edit\\Tab\\Content')->toHtml()]);
     return parent::_beforeToHtml();
 }
 protected function _beforeToHtml()
 {
     $this->addTab('related_posts_section', ['label' => __('Related Posts'), 'url' => $this->getUrl('blog/post/relatedPosts', ['_current' => true]), 'class' => 'ajax']);
     $this->addTab('related_products_section', ['label' => __('Related Products'), 'url' => $this->getUrl('blog/post/relatedProducts', ['_current' => true]), 'class' => 'ajax']);
     return parent::_beforeToHtml();
 }
Exemple #10
0
 /**
  * @return $this
  */
 protected function _beforeToHtml()
 {
     $this->addTab('form_section', array('label' => __('Rating Information'), 'title' => __('Rating Information'), 'content' => $this->getLayout()->createBlock('Magento\\Review\\Block\\Adminhtml\\Rating\\Edit\\Tab\\Form')->toHtml()));
     return parent::_beforeToHtml();
 }
Exemple #11
0
 protected function _beforeToHtml()
 {
     $this->addTab('post_info', ['label' => __('General'), 'title' => __('General'), 'content' => $this->getLayout()->createBlock('ISM\\Blog\\Block\\Adminhtml\\Post\\Edit\\Tab\\Info')->toHtml(), 'active' => true]);
     return parent::_beforeToHtml();
 }
Exemple #12
0
 /**
  * {@inheritdoc}
  */
 protected function _beforeToHtml()
 {
     \Magento\Framework\Profiler::start('customer/tabs');
     $this->addTab('account', array('label' => __('Account Information'), 'content' => $this->getLayout()->createBlock('Magento\\Customer\\Block\\Adminhtml\\Edit\\Tab\\Account')->initForm()->toHtml(), 'active' => $this->_coreRegistry->registry(RegistryConstants::CURRENT_CUSTOMER_ID) ? false : true));
     $this->addTab('addresses', array('label' => __('Addresses'), 'content' => $this->getLayout()->createBlock('Magento\\Customer\\Block\\Adminhtml\\Edit\\Tab\\Addresses')->initForm()->toHtml()));
     // load: Orders, Shopping Cart, Wishlist, Product Reviews, Product Tags - with ajax
     if ($this->_coreRegistry->registry(RegistryConstants::CURRENT_CUSTOMER_ID)) {
         if ($this->_authorization->isAllowed('Magento_Sales::actions_view')) {
             $this->addTab('orders', array('label' => __('Orders'), 'class' => 'ajax', 'url' => $this->getUrl('customer/*/orders', array('_current' => true))));
         }
         $this->addTab('cart', array('label' => __('Shopping Cart'), 'class' => 'ajax', 'url' => $this->getUrl('customer/*/carts', array('_current' => true))));
         $this->addTab('wishlist', array('label' => __('Wishlist'), 'class' => 'ajax', 'url' => $this->getUrl('customer/*/wishlist', array('_current' => true))));
         if ($this->_authorization->isAllowed('Magento_Newsletter::subscriber')) {
             $this->addTab('newsletter', array('label' => __('Newsletter'), 'content' => $this->getLayout()->createBlock('Magento\\Customer\\Block\\Adminhtml\\Edit\\Tab\\Newsletter')->initForm()->toHtml()));
         }
         $reviewOutput = $this->isOutputEnabled('Magento_Review');
         if ($this->_authorization->isAllowed('Magento_Review::reviews_all') && $reviewOutput) {
             $this->addTab('reviews', array('label' => __('Product Reviews'), 'class' => 'ajax', 'url' => $this->getUrl('customer/*/productReviews', array('_current' => true))));
         }
     }
     $this->_updateActiveTab();
     \Magento\Framework\Profiler::stop('customer/tabs');
     return parent::_beforeToHtml();
 }