app->loadLang('kanban');
common::setMenuVars('execution', $executionID);
$currentMethod = $this->app->methodName;
$execution = $this->execution->getById($executionID);
$this->loadModel('project')->setMenu($execution->project);
$this->lang->kanbanProject->menu->execution['subMenu'] = new stdClass();
$this->session->set('kanbanview', $currentMethod);
setcookie('kanbanview', $currentMethod, $this->config->cookieLife, $this->config->webRoot, '', false, true);
/* change subMenu to sub select menu */
$TRActions = $this->execution->getTRActions($currentMethod);
$TRActions .= "
";
$TRActions .= html::a('javascript:;', $this->lang->execution->kanbanGroup[$groupBy] . " ", '', "data-toggle='dropdown' data- class='btn btn-link'");
$TRActions .= "
";
$TRActions .= html::a('javascript:fullScreen()', " " . $this->lang->kanban->fullScreen, '', "class='btn btn-link'");
$printSettingBtn = (common::hasPriv('kanban', 'createRegion') or (common::hasPriv('kanban', 'setLaneHeight')) or common::hasPriv('execution', 'edit') or common::hasPriv('execution', 'close') or common::hasPriv('execution', 'delete') or !empty($executionActions));
$executionActions = array();
foreach($this->config->execution->statusActions as $action)
{
if($this->execution->isClickable($execution, $action)) $executionActions[] = $action;
}
if($this->execution->isClickable($execution, 'delete')) $executionActions[] = 'delete';
if($printSettingBtn)
{
$TRActions .= "";
$TRActions .= html::a('javascript:;', "" . $this->lang->kanban->setting, '', "data-toggle='dropdown' data- class='btn btn-link'");
$TRActions .= "
";
}
$canCreateTask = common::hasPriv('task', 'create');
$canBatchCreateTask = common::hasPriv('task', 'batchCreate');
if($canCreateTask or $canBatchCreateTask)
{
$TRActions .= "";
$TRActions .= "";
$TRActions .= "
";
}
$this->lang->TRActions = $TRActions;
$browseType = 'task';
parent::kanban($executionID, $browseType, $orderBy, $groupBy);
}
}