示例#1
0
 public function getBatchActions()
 {
     // retrieve the default batch actions (currently only delete)
     $actions = parent::getBatchActions();
     unset($actions['delete']);
     return $actions;
 }
 /**
  * {@inheritdoc}
  */
 public function getBatchActions()
 {
     $actions = parent::getBatchActions();
     $actions['mark_as_moderated_action'] = ['label' => 'Mark as moderated', 'ask_confirmation' => true];
     $actions['unmark_as_moderated_action'] = ['label' => 'Unmark as moderated', 'ask_confirmation' => true];
     return $actions;
 }
 public function getBatchActions()
 {
     // retrieve the default batch actions (currently only delete)
     $actions = parent::getBatchActions();
     $actions['archive'] = array('label' => $this->trans('Archiver', array(), 'SonataAdminBundle'), 'ask_confirmation' => true);
     return $actions;
 }
 /**
  * @return array
  */
 public function getBatchActions()
 {
     $actions = parent::getBatchActions();
     $actions['enabled'] = array('label' => $this->trans('batch_enable_comments'), 'ask_confirmation' => false);
     $actions['disabled'] = array('label' => $this->trans('batch_disable_comments'), 'ask_confirmation' => false);
     return $actions;
 }
示例#5
0
 public function getBatchActions()
 {
     $custom_actions['enable'] = array('label' => $this->trans('Habilitar'), 'ask_confirmation' => FALSE);
     $custom_actions['disable'] = array('label' => $this->trans('Deshabilitar'), 'ask_confirmation' => TRUE);
     $actions = array_merge($custom_actions, parent::getBatchActions());
     return $actions;
 }
 /**
  * {@inheritdoc}
  */
 public function getBatchActions()
 {
     $actions = parent::getBatchActions();
     $actions['enable_action'] = ['label' => 'Enable', 'ask_confirmation' => true];
     $actions['disable_action'] = ['label' => 'Disable', 'ask_confirmation' => true];
     return $actions;
 }
示例#7
0
 /**
  * {@inheritdoc}
  */
 public function getBatchActions()
 {
     $actions = parent::getBatchActions();
     $actions['enabled'] = array('label' => $this->trans($this->getLabelTranslatorStrategy()->getLabel('enable', 'batch', 'comment')), 'ask_confirmation' => false);
     $actions['disabled'] = array('label' => $this->trans($this->getLabelTranslatorStrategy()->getLabel('disable', 'batch', 'comment')), 'ask_confirmation' => false);
     return $actions;
 }
示例#8
0
 public function getBatchActions()
 {
     // retrieve the default (currently only the delete action) actions
     $actions = parent::getBatchActions();
     unset($actions['delete']);
     $actions['activate'] = array('label' => 'Activate Users (sends an activation email to selected users)', 'ask_confirmation' => true);
     return $actions;
 }
示例#9
0
 public function getBatchActions()
 {
     $actions = parent::getBatchActions();
     if ($this->hasRoute('edit') && $this->isGranted('EDIT') && $this->hasRoute('delete') && $this->isGranted('DELETE')) {
         $actions['deliveredAll'] = array('label' => 'Entregados', 'ask_confirmation' => true);
     }
     return $actions;
 }
 public function getBatchActions()
 {
     // retrieve the default batch actions (currently only delete)
     $actions = parent::getBatchActions();
     $actions['validate'] = array('label' => $this->trans('Validate All', array(), 'SonataAdminBundle'), 'ask_confirmation' => true);
     $actions['refuse'] = array('label' => $this->trans('Refuse All', array(), 'SonataAdminBundle'), 'ask_confirmation' => true);
     unset($actions['delete']);
     return $actions;
 }
示例#11
0
 public function getBatchActions()
 {
     $actions = parent::getBatchActions();
     if ($this->hasRoute('edit') && $this->isGranted('EDIT') && $this->hasRoute('delete') && $this->isGranted('DELETE')) {
         $actions['activate'] = ['label' => 'Activate', 'ask_confirmation' => true];
         $actions['deactivate'] = ['label' => 'Deactivate', 'ask_confirmation' => true];
     }
     return $actions;
 }
示例#12
0
 public function getBatchActions()
 {
     // retrieve the default (currently only the delete action) actions
     $actions = parent::getBatchActions();
     // check user permissions
     if ($this->hasRoute('edit') && $this->isGranted('EDIT') && $this->hasRoute('delete') && $this->isGranted('DELETE')) {
         $actions['projector'] = ['label' => "projector", 'ask_confirmation' => true];
     }
     return $actions;
 }
示例#13
0
 public function getBatchActions()
 {
     // retrieve the default (currently only the delete action) actions
     $actions = parent::getBatchActions();
     // check user permissions
     if ($this->hasRoute('edit') && $this->isGranted('EDIT') && $this->hasRoute('delete') && $this->isGranted('DELETE')) {
         $actions['extend'] = ['label' => 'Extend', 'ask_confirmation' => true];
         $actions['deleteNeverActivated'] = array('label' => 'Delete never activated jobs', 'ask_confirmation' => true);
     }
     return $actions;
 }
示例#14
0
 /**
  * redefine method to Returns the list of batchs actions for bank review
  *
  * @return array the list of batchs actions
  */
 public function getBatchActions()
 {
     //get parent action
     $actions = parent::getBatchActions();
     // check user permissions
     // if ($this->hasRoute('edit') && $this->isGranted('EDIT') && $this->hasRoute('delete') && $this->isGranted('DELETE')) {
     //set for moderation action
     $actions['moderation'] = array('label' => $this->trans('action_moderation', array(), 'SonataAdminBundle'), 'ask_confirmation' => true);
     $actions['valid'] = array('label' => $this->trans('action_valid', array(), 'SonataAdminBundle'), 'ask_confirmation' => true);
     $actions['inValid'] = array('label' => $this->trans('action_invalid', array(), 'SonataAdminBundle'), 'ask_confirmation' => true);
     //  }
     return $actions;
 }
示例#15
0
 /**
  * @return array
  */
 public function getBatchActions()
 {
     $actions = parent::getBatchActions();
     $actions['extend'] = array('label' => $this->trans('action_extend'), 'ask_confirmation' => true);
     return $actions;
 }
 /**
  * {@inheritdoc}
  */
 public function getBatchActions()
 {
     $actions = parent::getBatchActions();
     $actions['toggle_enabled'] = array('label' => $this->trans('toggle_enabled'), 'ask_confirmation' => true);
     return $actions;
 }
 public function getBatchActions()
 {
     // retrieve the default (currently only the delete action) actions
     $actions = parent::getBatchActions();
     // check user permissions
     if ($this->hasRoute('edit') && $this->isGranted('EDIT') && $this->hasRoute('delete') && $this->isGranted('DELETE')) {
         // define calculate action
         $actions['reset'] = array('label' => 'Réinitialiser mdp', 'ask_confirmation' => true);
     }
     return $actions;
 }
示例#18
0
 /**
  * @return array
  */
 public function getBatchActions()
 {
     $actions = parent::getBatchActions();
     unset($actions['delete']);
     return $actions;
 }
示例#19
0
 public function getBatchActions()
 {
     $actions = parent::getBatchActions();
     $actions['delete'] = null;
 }
 /**
  * Get batch actions for media
  *
  * This function retrieves the default (currently only the delete action) actions.
  *
  * @return array $action container for different actions for media
  */
 public function getBatchActions()
 {
     $actions = parent::getBatchActions();
     $actions['unpublish'] = array('label' => 'Unpublish', 'ask_confirmation' => true);
     return $actions;
 }
 /**
  * {@inheritdoc}
  */
 public function getBatchActions()
 {
     $actions = parent::getBatchActions();
     $actions['download'] = array('label' => $this->trans($this->getLabelTranslatorStrategy()->getLabel('download', 'batch', 'IbrowsSonataTranslationBundle')), 'ask_confirmation' => false);
     return $actions;
 }
示例#22
0
 public function getBatchActions()
 {
     $actions = parent::getBatchActions();
     $actions['snapshot'] = array('label' => $this->trans('create_snapshot'), 'ask_confirmation' => true);
     return $actions;
 }
 /**
  * @return array
  */
 public function getBatchActions()
 {
     $batch = array();
     if (!$this->getLocking()) {
         $batch = parent::getBatchActions();
     }
     return $batch;
 }