Beispiel #1
0
 /**
  * Define additional buttons
  *
  * @return array
  */
 protected function defineAdditionalButtons()
 {
     $list = parent::defineAdditionalButtons();
     $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;
 }
Beispiel #2
0
 /**
  * Define buttons widgets
  *
  * @return array
  */
 protected function defineButtons()
 {
     $list = parent::defineButtons();
     $list['import'] = $this->getWidget(array(\XLite\View\Button\AButton::PARAM_STYLE => 'always-enabled', \XLite\View\Button\AButton::PARAM_LABEL => 'Re-import payment methods', \XLite\View\Button\AButton::PARAM_DISABLED => false), 'XLite\\Module\\CDev\\XPaymentsConnector\\View\\Button\\PaymentMethods\\Import');
     $list['add_new'] = $this->getWidget(array(\XLite\View\Button\AButton::PARAM_STYLE => 'action link always-enabled', \XLite\View\Button\AButton::PARAM_LABEL => 'Add new payment method', \XLite\View\Button\AButton::PARAM_DISABLED => false, \XLite\View\Button\Link::PARAM_BLANK => true), 'XLite\\Module\\CDev\\XPaymentsConnector\\View\\Button\\PaymentMethods\\AddNew');
     return $list;
 }
Beispiel #3
0
 /**
  * Define additional buttons
  *
  * @return array
  */
 protected function defineAdditionalButtons()
 {
     $list = parent::defineAdditionalButtons();
     $list[] = $this->getWidget(array('disabled' => true, 'label' => 'Approve', 'style' => 'more-action', 'icon-style' => 'fa fa-check state-on'), 'XLite\\Module\\XC\\Reviews\\View\\Button\\Admin\\ApproveSelectedReviews');
     $list[] = $this->getWidget(array('disabled' => true, 'label' => 'Unapprove', 'style' => 'more-action', 'icon-style' => 'fa fa-check state-off'), 'XLite\\Module\\XC\\Reviews\\View\\Button\\Admin\\UnapproveSelectedReviews');
     $list[] = $this->getWidget(array('disabled' => true, 'label' => 'Delete', 'style' => 'more-action', 'icon-style' => 'fa fa-trash-o'), 'XLite\\Module\\XC\\Reviews\\View\\Button\\Admin\\DeleteSelectedReviews');
     return $list;
 }
Beispiel #4
0
 /**
  * Define additional buttons
  *
  * @return array
  */
 protected function defineAdditionalButtons()
 {
     $list = parent::defineAdditionalButtons();
     $list[] = $this->getWidget(array('disabled' => false, 'label' => 'Find language in marketplace', 'style' => 'action link always-enabled', 'location' => $this->buildURL('addons_list_marketplace', '', array('tag' => 'Translation'))), 'XLite\\View\\Button\\Link');
     $list[] = $this->getWidget(array('disabled' => false, 'label' => 'Import language from CSV file', 'style' => 'action link always-enabled', 'object' => 'language', 'fileObject' => 'file'), '\\XLite\\View\\Button\\FileSelector');
     $list[] = $this->getWidget(array('disabled' => false, 'label' => 'Add language', 'style' => 'action link always-enabled'), 'XLite\\View\\LanguagesModify\\Button\\AddNewLanguage');
     return $list;
 }
Beispiel #5
0
 /**
  * Define additional buttons
  *
  * @return array
  */
 protected function defineAdditionalButtons()
 {
     $list = parent::defineAdditionalButtons();
     $list[] = $this->getWidget(array('disabled' => false, 'label' => 'Empty', 'style' => 'action link'), 'XLite\\View\\Button\\Addon\\InstallModulesSelected');
     return $list;
 }
Beispiel #6
0
 /**
  * Define additional buttons
  *
  * @return array
  */
 protected function defineButtons()
 {
     $list = parent::defineButtons();
     $list['shipping_methods'] = new \XLite\View\Button\SimpleLink(array(\XLite\View\Button\AButton::PARAM_LABEL => static::t('Back to shipping methods'), \XLite\View\Button\AButton::PARAM_STYLE => 'action shipping-list-back-button', \XLite\View\Button\Link::PARAM_LOCATION => $this->buildURL('shipping_methods')));
     return $list;
 }
Beispiel #7
0
 /**
  * Define additional buttons
  *
  * @return array
  */
 protected function defineButtons()
 {
     $list = parent::defineButtons();
     $list[] = $this->getWidget(array(), 'XLite\\View\\Button\\Addon\\ManageModulesSelected');
     return $list;
 }
Beispiel #8
0
 /**
  * Define buttons widgets
  *
  * @return array
  */
 protected function defineButtons()
 {
     $list = parent::defineButtons();
     $list['addons-list'] = $this->getWidget(array(\XLite\View\Button\AButton::PARAM_STYLE => 'action addons-list-back-button', \XLite\View\Button\BackToModulesLink::PARAM_MODULE_ID => $this->getModuleId()), '\\XLite\\View\\Button\\BackToModulesLink');
     return $list;
 }
Beispiel #9
0
 /**
  * Define additional buttons
  *
  * @return array
  */
 protected function defineAdditionalButtons()
 {
     $list = parent::defineAdditionalButtons();
     $list[] = $this->getWidget(array('disabled' => true, 'style' => 'more-action', 'icon-style' => 'fa fa-trash-o'), 'XLite\\Module\\XC\\ProductVariants\\View\\Button\\DeleteSelectedVariants');
     return $list;
 }
Beispiel #10
0
 /**
  * Defines the style for the save button
  *
  * @return string
  */
 protected function getSaveWidgetStyle()
 {
     return parent::getSaveWidgetStyle() . ' more-action';
 }