public function getFormHtml()
 {
     if ($this->getChild('form')) {
         return parent::getFormHtml();
     }
     return '';
 }
示例#2
0
    public function getFormHtml()
    {
        $html = '';
        $tabs = $this->getChild('tabs');
        // ---------------------------------------
        $html .= $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_listing_template_switcher_initialization')->toHtml();
        // ---------------------------------------
        // initiate template switcher url
        // ---------------------------------------
        $html .= Ess_M2ePro_Block_Adminhtml_Ebay_Listing_Template_Switcher::getSwitcherUrlHtml();
        // ---------------------------------------
        // ---------------------------------------
        $html .= <<<HTML
<script type="text/javascript">
    EbayListingTemplateSwitcherHandlerObj.checkAttributesAvailability = true;
</script>
HTML;
        // ---------------------------------------
        // hide tabs selector if only one tab is allowed for displaying
        // ---------------------------------------
        if (count($this->getAllowedTabs()) == 1) {
            $html .= <<<HTML
<script type="text/javascript">
    \$('{$tabs->getId()}').hide();
</script>
HTML;
        }
        // ---------------------------------------
        return $html . $tabs->toHtml() . parent::getFormHtml();
    }
示例#3
0
 /**
  * Return form HTML
  *
  * @return string
  */
 public function getFormHtml()
 {
     $formHtml = parent::getFormHtml();
     if (!Mage::app()->isSingleStoreMode() && $this->getVariable()->getId()) {
         $storeSwitcher = $this->getLayout()->createBlock('adminhtml/store_switcher')->toHtml();
         $formHtml = $storeSwitcher . $formHtml;
     }
     return $formHtml;
 }
示例#4
0
 public function getFormHtml()
 {
     $html = parent::getFormHtml();
     // add store switcher
     if (!Mage::app()->isSingleStoreMode() && $this->getRequest()->getParam('id')) {
         $store_switcher = $this->getLayout()->createBlock('adminhtml/store_switcher', 'store_switcher');
         $store_switcher->setDefaultStoreName($this->__('Default Values'));
         $html = $store_switcher->toHtml() . $html;
     }
     return $html;
 }
示例#5
0
 public function getFormHtml()
 {
     //$html = "<div id=\"messages\">";
     //$html .= $this->getMessagesBlock()->getGroupedHtml();
     //$html .= "</div>";
     $html = $this->getChildHtml('gallery_edit_tabs');
     $js = "<script type=\"javascript\">";
     $js .= "if(day_tabsJsTabs) day_tabsJsTabs.showTabContent(day_tabsJsTabs.tabs[0]);";
     $js .= "editForm = new varienForm('edit_form', '');";
     $js .= "</script>";
     return $html . parent::getFormHtml() . $js;
 }
示例#6
0
 /**
  * Prepare form html. Add block for configurable product modification interface
  *
  * @return string
  */
 public function getFormHtml()
 {
     $html = parent::getFormHtml();
     $html .= $this->getLayout()->createBlock('adminhtml/catalog_product_composite_configure')->toHtml();
     return $html;
 }
示例#7
0
    public function getFormHtml()
    {
        $listing = Mage::helper('M2ePro/Component_Amazon')->getCachedObject('Listing', $this->getRequest()->getParam('id'));
        $viewHeaderBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_listing_view_header', '', array('listing' => $listing));
        $tabs = $this->getChild('tabs');
        $urls = Mage::helper('M2ePro')->getControllerActions('adminhtml_common_listing_autoAction', array('listing_id' => $this->getRequest()->getParam('id'), 'component' => Ess_M2ePro_Helper_Component_Amazon::NICK));
        $urls = json_encode($urls);
        /** @var $helper Ess_M2ePro_Helper_Data */
        $helper = Mage::helper('M2ePro');
        $translations = json_encode(array('Auto Add/Remove Rules' => $helper->__('Auto Add/Remove Rules'), 'Based on Magento Categories' => $helper->__('Based on Magento Categories'), 'You must select at least 1 Category.' => $helper->__('You must select at least 1 Category.'), 'Rule with the same Title already exists.' => $helper->__('Rule with the same Title already exists.')));
        $js = <<<HTML
<script type="text/javascript">

    M2ePro.url.add({$urls});
    M2ePro.translator.add({$translations});

    ListingAutoActionHandlerObj = new ListingAutoActionHandler();

</script>
HTML;
        return $viewHeaderBlock->toHtml() . $tabs->toHtml() . parent::getFormHtml() . $js;
    }
示例#8
0
 /**
  * Adds to html of form html of accordion block
  *
  * @return string
  */
 public function getFormHtml()
 {
     $html = parent::getFormHtml();
     return $html . $this->getChildHtml('accordion');
 }
示例#9
0
 /**
  * Prepare form html. Add block for configurable product modification interface
  *
  * @return string
  */
 public function getFormHtml()
 {
     $html = parent::getFormHtml();
     $html .= $this->getLayout()->createBlock('Mage_Adminhtml_Block_Catalog_Product_Composite_Configure')->toHtml();
     return $html;
 }
示例#10
0
 public function getFormHtml()
 {
     $html = parent::getFormHtml();
     return $html;
 }
示例#11
0
 public function getFormHtml()
 {
     return $this->getChildHtml('general') . parent::getFormHtml();
 }
示例#12
0
    public function getFormHtml()
    {
        $html = '';
        $tabs = $this->getChild('tabs');
        //------------------------------
        $html .= $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_listing_template_switcher_initialization')->toHtml();
        //------------------------------
        // initiate template switcher url
        //------------------------------
        $html .= Ess_M2ePro_Block_Adminhtml_Ebay_Listing_Template_Switcher::getSwitcherUrlHtml();
        //------------------------------
        //------------------------------
        $data = array('display_tab_buttons' => false);
        $block = $this->getLayout()->createBlock('M2ePro/adminhtml_widget_floatingToolbarFixer');
        $block->addData($data);
        $html .= $block->toHtml();
        //------------------------------
        //------------------------------
        $listing = Mage::helper('M2ePro/Data_Global')->getValue('ebay_listing');
        $headerHtml = '';
        if ($listing) {
            $headerHtml = $this->getLayout()->createBlock('M2ePro/adminhtml_listing_view_header', '', array('listing' => $listing))->toHtml();
        }
        //------------------------------
        // hide tabs selector if only one tab is allowed for displaying
        //------------------------------
        if (count($this->getAllowedTabs()) == 1) {
            $html .= <<<HTML
<script type="text/javascript">
    Event.observe(window, 'load', function() {
        \$('{$tabs->getId()}').hide();
    });
</script>
HTML;
        }
        //------------------------------
        return $html . $headerHtml . $tabs->toHtml() . parent::getFormHtml();
    }
示例#13
0
 /**
  * Prepare form html. Add block for configurable product modification interface
  *
  * @return string
  */
 public function getFormHtml()
 {
     $html = parent::getFormHtml();
     //@nelkaake removed for dependency fixes        $html .= $this->getLayout()->createBlock('adminhtml/catalog_product_composite_configure')->toHtml();
     return $html;
 }