loadLang('story'); $app->loadLang('bug'); $app->loadLang('build'); $isEn = $app->getClientLang() == 'en'; $config->release->dtable = new stdclass(); $config->release->dtable->story = new stdclass(); $config->release->dtable->bug = new stdclass(); $config->release->dtable->leftBug = new stdclass(); $config->release->dtable->defaultFields['linkStory'] = array('id', 'title', 'pri', 'status', 'linkedBuild', 'estimate', 'stage'); $config->release->dtable->defaultFields['linkBug']['bug'] = array('id', 'title', 'pri', 'status', 'openedBy', 'resolvedBy'); $config->release->dtable->defaultFields['linkBug']['leftBug'] = array('id', 'title', 'severity', 'pri', 'status','openedBy', 'resolvedBy'); $config->release->dtable->fieldList['id']['title'] = $lang->idAB; $config->release->dtable->fieldList['id']['name'] = 'id'; $config->release->dtable->fieldList['id']['type'] = 'id'; $config->release->dtable->fieldList['system']['name'] = 'system'; $config->release->dtable->fieldList['system']['title'] = $lang->release->system; $config->release->dtable->fieldList['system']['type'] = 'shortNestedTitle'; $config->release->dtable->fieldList['system']['fixed'] = 'left'; $config->release->dtable->fieldList['system']['show'] = true; $config->release->dtable->fieldList['system']['required'] = true; $config->release->dtable->fieldList['system']['nestedToggle'] = true; $config->release->dtable->fieldList['name']['title'] = $lang->release->name; $config->release->dtable->fieldList['name']['name'] = 'name'; $config->release->dtable->fieldList['name']['link'] = array('module' => 'release', 'method' => 'view', 'params' => 'releaseID={id}'); $config->release->dtable->fieldList['name']['type'] = 'category'; $config->release->dtable->fieldList['name']['fixed'] = 'left'; $config->release->dtable->fieldList['name']['width'] = 150; $config->release->dtable->fieldList['name']['show'] = true; $config->release->dtable->fieldList['name']['required'] = true; $config->release->dtable->fieldList['branch']['title'] = $lang->release->branch; $config->release->dtable->fieldList['branch']['name'] = 'branchName'; $config->release->dtable->fieldList['branch']['type'] = 'category'; $config->release->dtable->fieldList['branch']['sortType'] = true; $config->release->dtable->fieldList['branch']['show'] = true; $config->release->dtable->fieldList['project']['title'] = $lang->release->project; $config->release->dtable->fieldList['project']['name'] = 'project'; $config->release->dtable->fieldList['project']['type'] = 'category'; $config->release->dtable->fieldList['project']['group'] = 1; $config->release->dtable->fieldList['project']['show'] = true; $config->release->dtable->fieldList['build']['title'] = $lang->release->includedBuild; $config->release->dtable->fieldList['build']['name'] = 'build'; $config->release->dtable->fieldList['build']['type'] = 'category'; $config->release->dtable->fieldList['build']['group'] = 1; $config->release->dtable->fieldList['build']['show'] = true; $config->release->dtable->fieldList['status']['title'] = $lang->release->status; $config->release->dtable->fieldList['status']['name'] = 'status'; $config->release->dtable->fieldList['status']['type'] = 'status'; $config->release->dtable->fieldList['status']['statusMap'] = $lang->release->statusList; $config->release->dtable->fieldList['status']['width'] = 120; $config->release->dtable->fieldList['status']['show'] = true; $config->release->dtable->fieldList['date']['title'] = $lang->release->date; $config->release->dtable->fieldList['date']['name'] = 'date'; $config->release->dtable->fieldList['date']['type'] = 'date'; $config->release->dtable->fieldList['date']['minWidth'] = $isEn ? '150' : '100'; $config->release->dtable->fieldList['date']['show'] = true; $config->release->dtable->fieldList['releasedDate']['title'] = $lang->release->releasedDate; $config->release->dtable->fieldList['releasedDate']['name'] = 'releasedDate'; $config->release->dtable->fieldList['releasedDate']['type'] = 'date'; $config->release->dtable->fieldList['releasedDate']['minWidth'] = $isEn ? '150' : '100'; $config->release->dtable->fieldList['releasedDate']['show'] = true; $config->release->dtable->fieldList['desc']['title'] = $lang->release->desc; $config->release->dtable->fieldList['desc']['name'] = 'desc'; $config->release->dtable->fieldList['desc']['type'] = 'desc'; $config->release->dtable->fieldList['desc']['width'] = '160'; $config->release->dtable->fieldList['desc']['sortType'] = false; $config->release->dtable->fieldList['desc']['hint'] = true; $config->release->dtable->fieldList['desc']['show'] = true; $config->release->dtable->fieldList['actions']['title'] = $lang->actions; $config->release->dtable->fieldList['actions']['name'] = 'actions'; $config->release->dtable->fieldList['actions']['type'] = 'actions'; $config->release->dtable->fieldList['actions']['width'] = 'auto'; $config->release->dtable->fieldList['actions']['list'] = $config->release->actionList; $config->release->dtable->fieldList['actions']['menu'] = array('linkStory', 'linkBug', 'publish|play|pause', 'edit', 'notify', 'delete'); $config->release->dtable->story->fieldList['id']['title'] = $lang->idAB; $config->release->dtable->story->fieldList['id']['name'] = 'id'; $config->release->dtable->story->fieldList['id']['type'] = 'checkID'; $config->release->dtable->story->fieldList['id']['sortType'] = 'desc'; $config->release->dtable->story->fieldList['id']['checkbox'] = true; $config->release->dtable->story->fieldList['title']['title'] = $lang->story->title; $config->release->dtable->story->fieldList['title']['name'] = 'title'; $config->release->dtable->story->fieldList['title']['type'] = 'title'; $config->release->dtable->story->fieldList['title']['link'] = helper::createLink('story', 'view', 'storyID={id}'); $config->release->dtable->story->fieldList['title']['data-toggle'] = 'modal'; $config->release->dtable->story->fieldList['title']['data-size'] = 'lg'; $config->release->dtable->story->fieldList['title']['data-app'] = $app->tab; $config->release->dtable->story->fieldList['pri']['title'] = $lang->priAB; $config->release->dtable->story->fieldList['pri']['name'] = 'pri'; $config->release->dtable->story->fieldList['pri']['type'] = 'pri'; $config->release->dtable->story->fieldList['pri']['priList'] = $lang->story->priList; $config->release->dtable->story->fieldList['status']['title'] = $lang->statusAB; $config->release->dtable->story->fieldList['status']['name'] = 'status'; $config->release->dtable->story->fieldList['status']['type'] = 'status'; $config->release->dtable->story->fieldList['status']['statusMap'] = $lang->story->statusList; $config->release->dtable->story->fieldList['linkedBuild']['title'] = $lang->build->linkedBuild; $config->release->dtable->story->fieldList['linkedBuild']['name'] = 'buildName'; $config->release->dtable->story->fieldList['linkedBuild']['type'] = 'text'; $config->release->dtable->story->fieldList['openedBy']['title'] = $lang->openedByAB; $config->release->dtable->story->fieldList['openedBy']['name'] = 'openedBy'; $config->release->dtable->story->fieldList['openedBy']['type'] = 'user'; $config->release->dtable->story->fieldList['estimate']['title'] = $lang->story->estimateAB; $config->release->dtable->story->fieldList['estimate']['name'] = 'estimate'; $config->release->dtable->story->fieldList['estimate']['type'] = 'number'; if($isEn) $config->release->dtable->story->fieldList['estimate']['width'] = 100; $config->release->dtable->story->fieldList['stage']['title'] = $lang->story->stageAB; $config->release->dtable->story->fieldList['stage']['name'] = 'stage'; $config->release->dtable->story->fieldList['stage']['type'] = 'category'; $config->release->dtable->story->fieldList['stage']['map'] = $lang->story->stageList; if($isEn) $config->release->dtable->story->fieldList['stage']['width'] = 100; $config->release->dtable->story->fieldList['actions']['title'] = $lang->actions; $config->release->dtable->story->fieldList['actions']['name'] = 'actions'; $config->release->dtable->story->fieldList['actions']['type'] = 'actions'; $config->release->dtable->story->fieldList['actions']['minWidth'] = 60; $config->release->dtable->story->fieldList['actions']['menu'] = array('unlinkStory'); $config->release->dtable->story->fieldList['actions']['list'] = $config->release->actionList; if($isEn) $config->release->dtable->story->fieldList['actions']['width'] = 80; $config->release->dtable->bug->fieldList['id']['title'] = $lang->idAB; $config->release->dtable->bug->fieldList['id']['name'] = 'id'; $config->release->dtable->bug->fieldList['id']['type'] = 'checkID'; $config->release->dtable->bug->fieldList['id']['sortType'] = 'desc'; $config->release->dtable->bug->fieldList['title']['title'] = $lang->bug->title; $config->release->dtable->bug->fieldList['title']['name'] = 'title'; $config->release->dtable->bug->fieldList['title']['type'] = 'title'; $config->release->dtable->bug->fieldList['title']['link'] = array('module' => 'bug', 'method' => 'view', 'params' => 'bugID={id}'); $config->release->dtable->bug->fieldList['title']['data-toggle'] = 'modal'; $config->release->dtable->bug->fieldList['title']['data-size'] = 'lg'; $config->release->dtable->bug->fieldList['title']['data-app'] = $app->tab; $config->release->dtable->bug->fieldList['severity']['title'] = $lang->bug->severity; $config->release->dtable->bug->fieldList['severity']['name'] = 'severity'; $config->release->dtable->bug->fieldList['severity']['type'] = 'severity'; $config->release->dtable->bug->fieldList['severity']['severityList'] = $lang->bug->severityList; $config->release->dtable->bug->fieldList['pri']['title'] = $lang->priAB; $config->release->dtable->bug->fieldList['pri']['name'] = 'pri'; $config->release->dtable->bug->fieldList['pri']['type'] = 'pri'; $config->release->dtable->bug->fieldList['pri']['priList'] = $lang->bug->priList; $config->release->dtable->bug->fieldList['status']['title'] = $lang->statusAB; $config->release->dtable->bug->fieldList['status']['name'] = 'status'; $config->release->dtable->bug->fieldList['status']['type'] = 'status'; $config->release->dtable->bug->fieldList['status']['statusMap'] = $lang->bug->statusList; $config->release->dtable->bug->fieldList['resolvedBuild']['title'] = $lang->bug->resolvedBuild; $config->release->dtable->bug->fieldList['resolvedBuild']['name'] = 'resolvedBuild'; $config->release->dtable->bug->fieldList['resolvedBuild']['type'] = 'text'; $config->release->dtable->bug->fieldList['openedBy']['title'] = $lang->openedByAB; $config->release->dtable->bug->fieldList['openedBy']['name'] = 'openedBy'; $config->release->dtable->bug->fieldList['openedBy']['type'] = 'user'; $config->release->dtable->bug->fieldList['openedDate']['title'] = $lang->bug->abbr->openedDate; $config->release->dtable->bug->fieldList['openedDate']['name'] = 'openedDate'; $config->release->dtable->bug->fieldList['openedDate']['type'] = 'date'; $config->release->dtable->bug->fieldList['resolvedBy']['title'] = $lang->bug->resolvedBy; $config->release->dtable->bug->fieldList['resolvedBy']['name'] = 'resolvedBy'; $config->release->dtable->bug->fieldList['resolvedBy']['type'] = 'user'; if($isEn) $config->release->dtable->bug->fieldList['resolvedBy']['width'] = 120; $config->release->dtable->bug->fieldList['resolvedDate']['title'] = $lang->bug->abbr->resolvedDate; $config->release->dtable->bug->fieldList['resolvedDate']['name'] = 'resolvedDate'; $config->release->dtable->bug->fieldList['resolvedDate']['type'] = 'date'; $config->release->dtable->bug->fieldList['actions']['title'] = $lang->actions; $config->release->dtable->bug->fieldList['actions']['name'] = 'actions'; $config->release->dtable->bug->fieldList['actions']['type'] = 'actions'; $config->release->dtable->bug->fieldList['actions']['minWidth'] = 60; $config->release->dtable->bug->fieldList['actions']['menu'] = array('unlinkBug'); $config->release->dtable->bug->fieldList['actions']['list'] = $config->release->actionList; if($isEn) $config->release->dtable->bug->fieldList['actions']['width'] = 80; $config->release->dtable->leftBug = clone $config->release->dtable->bug; $config->release->dtable->leftBug->fieldList['openedBuild']['title'] = $lang->bug->openedBuild; $config->release->dtable->leftBug->fieldList['openedBuild']['name'] = 'openedBuild'; $config->release->dtable->leftBug->fieldList['openedBuild']['type'] = 'text'; $config->release->dtable->leftBug->fieldList['openedBuild']['sortType'] = true; $config->release->dtable->leftBug->fieldList['severity']['name'] = 'severityOrder'; $config->release->dtable->leftBug->fieldList['actions']['menu'] = array('unlinkLeftBug'); unset($config->release->dtable->leftBug->fieldList['resolvedBuild']); unset($config->release->dtable->leftBug->fieldList['resolvedBy']); unset($config->release->dtable->leftBug->fieldList['resolvedDate']);