public function getWorkflowRequestAdditionalActions(Progress $wp)
 {
     $buttons = array();
     $button = new WorkflowProgressAction();
     $button->setWorkflowProgressActionLabel(t('Review'));
     $button->addWorkflowProgressActionButtonParameter('dialog-title', t('User Details'));
     $button->addWorkflowProgressActionButtonParameter('dialog-width', '420');
     $button->addWorkflowProgressActionButtonParameter('dialog-height', '310');
     $button->setWorkflowProgressActionStyleInnerButtonLeftHTML('<i class="fa fa-eye"></i>');
     $button->setWorkflowProgressActionURL(REL_DIR_FILES_TOOLS_REQUIRED . '/workflow/dialogs/user_details?uID=' . $this->getRequestedUserID());
     $button->setWorkflowProgressActionStyleClass('btn-default dialog-launch');
     $buttons[] = $button;
     return $buttons;
 }
 public function getWorkflowRequestAdditionalActions(WorkflowProgress $wp)
 {
     $buttons = array();
     $w = $wp->getWorkflowObject();
     if ($w->canApproveWorkflowProgressObject($wp)) {
         $c = Page::getByID($this->cID, 'ACTIVE');
         $button = new WorkflowProgressAction();
         $button->setWorkflowProgressActionLabel(t('View Pending Permissions'));
         $button->addWorkflowProgressActionButtonParameter('dialog-title', t('Pending Permissions'));
         $button->addWorkflowProgressActionButtonParameter('dialog-width', '400');
         $button->addWorkflowProgressActionButtonParameter('dialog-height', '360');
         $button->setWorkflowProgressActionStyleInnerButtonLeftHTML('<i class="icon-eye-open"></i>');
         $button->setWorkflowProgressActionURL(REL_DIR_FILES_TOOLS_REQUIRED . '/workflow/dialogs/change_page_permissions?wpID=' . $wp->getWorkflowProgressID());
         $button->setWorkflowProgressActionStyleClass('dialog-launch');
         $buttons[] = $button;
     }
     return $buttons;
 }
 public function getWorkflowRequestAdditionalActions(WorkflowProgress $wp)
 {
     $buttons = array();
     $c = Page::getByID($this->cID, 'ACTIVE');
     $cp = new Permissions($c);
     if ($cp->canViewPageVersions()) {
         $button = new WorkflowProgressAction();
         $button->setWorkflowProgressActionLabel(t('Compare Versions'));
         $button->addWorkflowProgressActionButtonParameter('dialog-title', t('Compare Versions'));
         $button->addWorkflowProgressActionButtonParameter('dialog-width', '90%');
         $button->addWorkflowProgressActionButtonParameter('dialog-height', '70%');
         $button->addWorkflowProgressActionButtonParameter('data-dismiss-alert', 'page-alert');
         $button->addWorkflowProgressActionButtonParameter('dialog-height', '70%');
         $button->setWorkflowProgressActionStyleInnerButtonLeftHTML('<i class="fa fa-eye"></i>');
         $button->setWorkflowProgressActionURL(REL_DIR_FILES_TOOLS_REQUIRED . '/workflow/dialogs/approve_page_preview?wpID=' . $wp->getWorkflowProgressID());
         $button->setWorkflowProgressActionStyleClass('btn-default dialog-launch');
         $buttons[] = $button;
     }
     return $buttons;
 }