Esempio n. 1
0
 /**
  * Define buttons widgets
  *
  * @return array
  */
 protected function defineButtons()
 {
     $list = array();
     if ('global' == \XLite\Core\Request::getInstance()->spage) {
         $list['saveMode'] = $this->getWidget(array('fieldOnly' => true, 'fieldName' => 'save_mode', 'attributes' => array('disabled' => 'disabled', 'class' => 'not-significant')), 'XLite\\View\\FormField\\Select\\AttributeSaveMode');
         $list['saveModeTooltips'] = $this->getWidget(array(), 'XLite\\View\\Product\\Details\\Admin\\SaveModeTooltips');
     }
     return array_merge(parent::defineButtons(), $list);
 }
Esempio n. 2
0
 /**
  * Define additional buttons
  *
  * @return array
  */
 protected function defineAdditionalButtons()
 {
     $list = parent::defineAdditionalButtons();
     $list[] = $this->getWidget(array('disabled' => true, 'label' => 'Delete', 'style' => 'more-action', 'icon-style' => 'fa fa-trash-o'), 'XLite\\View\\Button\\DeleteSelectedProducts');
     $list[] = $this->getWidget(array(), 'XLite\\View\\Button\\Divider');
     $list[] = $this->getWidget(array('disabled' => true, 'label' => 'Clone', 'style' => 'more-action', 'icon-style' => 'fa fa-copy'), 'XLite\\View\\Button\\CloneSelected');
     $list[] = $this->getWidget(array('disabled' => true, 'label' => 'Enable', 'style' => 'more-action', 'icon-style' => 'fa fa-power-off state-on'), 'XLite\\View\\Button\\EnableSelected');
     $list[] = $this->getWidget(array('disabled' => true, 'label' => 'Disable', 'style' => 'more-action', 'icon-style' => 'fa fa-power-off state-off'), 'XLite\\View\\Button\\DisableSelected');
     return $list;
 }