dtable.php 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  1. <?php
  2. global $lang,$app;
  3. $isEn = $app->getClientLang() == 'en';
  4. $config->program->dtable = new stdclass();
  5. $config->program->dtable->fieldList['name']['name'] = 'name';
  6. $config->program->dtable->fieldList['name']['title'] = $lang->nameAB;
  7. $config->program->dtable->fieldList['name']['width'] = 356;
  8. $config->program->dtable->fieldList['name']['type'] = 'link';
  9. $config->program->dtable->fieldList['name']['flex'] = 1;
  10. $config->program->dtable->fieldList['name']['nestedToggle'] = true;
  11. $config->program->dtable->fieldList['name']['checkbox'] = true;
  12. $config->program->dtable->fieldList['name']['iconRender'] = true;
  13. $config->program->dtable->fieldList['name']['sortType'] = false;
  14. $config->program->dtable->fieldList['status']['name'] = 'status';
  15. $config->program->dtable->fieldList['status']['title'] = $lang->program->status;
  16. $config->program->dtable->fieldList['status']['minWidth'] = 60;
  17. $config->program->dtable->fieldList['status']['type'] = 'status';
  18. $config->program->dtable->fieldList['status']['sortType'] = true;
  19. $config->program->dtable->fieldList['status']['statusMap'] = $lang->program->statusList;
  20. $config->program->dtable->fieldList['PM']['name'] = 'PM';
  21. $config->program->dtable->fieldList['PM']['title'] = $lang->program->PM;
  22. $config->program->dtable->fieldList['PM']['minWidth'] = 100;
  23. $config->program->dtable->fieldList['PM']['type'] = 'avatarBtn';
  24. $config->program->dtable->fieldList['PM']['sortType'] = true;
  25. $config->program->dtable->fieldList['budget']['name'] = 'budget';
  26. $config->program->dtable->fieldList['budget']['title'] = $lang->program->budget;
  27. $config->program->dtable->fieldList['budget']['minWidth'] = 70;
  28. $config->program->dtable->fieldList['budget']['type'] = 'format';
  29. $config->program->dtable->fieldList['budget']['sortType'] = true;
  30. $config->program->dtable->fieldList['begin']['name'] = 'begin';
  31. $config->program->dtable->fieldList['begin']['title'] = $lang->program->begin;
  32. $config->program->dtable->fieldList['begin']['minWidth'] = 90;
  33. $config->program->dtable->fieldList['begin']['type'] = 'datetime';
  34. $config->program->dtable->fieldList['begin']['sortType'] = true;
  35. $config->program->dtable->fieldList['end']['name'] = 'end';
  36. $config->program->dtable->fieldList['end']['title'] = $lang->program->end;
  37. $config->program->dtable->fieldList['end']['minWidth'] = 90;
  38. $config->program->dtable->fieldList['end']['type'] = 'datetime';
  39. $config->program->dtable->fieldList['end']['sortType'] = true;
  40. $config->program->dtable->fieldList['progress']['name'] = 'progress';
  41. $config->program->dtable->fieldList['progress']['title'] = $lang->program->progressAB;
  42. $config->program->dtable->fieldList['progress']['minWidth'] = 100;
  43. $config->program->dtable->fieldList['progress']['sortType'] = false;
  44. $config->program->dtable->fieldList['progress']['type'] = 'progress';
  45. $config->program->dtable->fieldList['progress']['align'] = 'center';
  46. $config->program->dtable->fieldList['actions']['name'] = 'actions';
  47. $config->program->dtable->fieldList['actions']['title'] = $lang->actions;
  48. $config->program->dtable->fieldList['actions']['width'] = 160;
  49. $config->program->dtable->fieldList['actions']['type'] = 'actions';
  50. $config->program->dtable->fieldList['actions']['fixed'] = 'right';
  51. $config->program->dtable->fieldList['actions']['module'] = 'program';
  52. /* DataTable fields of Product View. */
  53. $config->program->productview = new stdClass();
  54. $config->program->productview->dtable = new stdClass();
  55. $config->program->productview->dtable->fieldList = array();
  56. $config->program->productview->dtable->fieldList['name']['name'] = 'name';
  57. $config->program->productview->dtable->fieldList['name']['title'] = $lang->nameAB;
  58. $config->program->productview->dtable->fieldList['name']['type'] = 'link';
  59. $config->program->productview->dtable->fieldList['name']['iconRender'] = 'RAWJS<function(value, row){return window.iconRenderProductView(value, row);}>RAWJS';
  60. $config->program->productview->dtable->fieldList['name']['link'] = "RAWJS<function(info){const {row, col} = info; if(row.data.type == 'product') return {url:$.createLink('product', 'browse', 'productID=' + row.data.id)}; if(row.data.type == 'program') return {url:$.createLink('program', 'view', 'programID=' + row.data.id.replace('program-', ''))};}>RAWJS";
  61. $config->program->productview->dtable->fieldList['name']['nestedToggle'] = true;
  62. $config->program->productview->dtable->fieldList['name']['checkbox'] = true;
  63. $config->program->productview->dtable->fieldList['name']['show'] = true;
  64. $config->program->productview->dtable->fieldList['name']['sortType'] = true;
  65. $config->program->productview->dtable->fieldList['name']['fixed'] = 'left';
  66. $config->program->productview->dtable->fieldList['name']['width'] = 356;
  67. $config->program->productview->dtable->fieldList['name']['group'] = 'g1';
  68. $config->program->productview->dtable->fieldList['PO']['name'] = 'PO';
  69. $config->program->productview->dtable->fieldList['PO']['title'] = $lang->program->PM;
  70. $config->program->productview->dtable->fieldList['PO']['type'] = 'avatarBtn';
  71. $config->program->productview->dtable->fieldList['PO']['show'] = true;
  72. $config->program->productview->dtable->fieldList['PO']['group'] = 'g2';
  73. if($isEn) $config->program->productview->dtable->fieldList['PO']['width'] = 150;
  74. $config->program->productview->dtable->fieldList['createdDate']['name'] = 'createdDate';
  75. $config->program->productview->dtable->fieldList['createdDate']['title'] = $lang->program->createdDate;
  76. $config->program->productview->dtable->fieldList['createdDate']['type'] = 'datetime';
  77. $config->program->productview->dtable->fieldList['createdDate']['sortType'] = false;
  78. $config->program->productview->dtable->fieldList['createdDate']['group'] = 'g3';
  79. $config->program->productview->dtable->fieldList['createdBy']['name'] = 'createdBy';
  80. $config->program->productview->dtable->fieldList['createdBy']['title'] = $lang->openedByAB;
  81. $config->program->productview->dtable->fieldList['createdBy']['type'] = 'user';
  82. $config->program->productview->dtable->fieldList['createdBy']['group'] = 'g3';
  83. $config->program->productview->dtable->fieldList['totalUnclosedStories']['name'] = 'totalUnclosedStories';
  84. $config->program->productview->dtable->fieldList['totalUnclosedStories']['title'] = $lang->program->totalUnclosedStories;
  85. $config->program->productview->dtable->fieldList['totalUnclosedStories']['minWidth'] = 100;
  86. $config->program->productview->dtable->fieldList['totalUnclosedStories']['type'] = 'number';
  87. $config->program->productview->dtable->fieldList['totalUnclosedStories']['show'] = true;
  88. $config->program->productview->dtable->fieldList['totalUnclosedStories']['sortType'] = false;
  89. $config->program->productview->dtable->fieldList['totalUnclosedStories']['group'] = 'g4';
  90. $config->program->productview->dtable->fieldList['totalStories']['name'] = 'totalStories';
  91. $config->program->productview->dtable->fieldList['totalStories']['title'] = $lang->program->totalStories;
  92. $config->program->productview->dtable->fieldList['totalStories']['minWidth'] = 100;
  93. $config->program->productview->dtable->fieldList['totalStories']['type'] = 'number';
  94. $config->program->productview->dtable->fieldList['totalStories']['sortType'] = false;
  95. $config->program->productview->dtable->fieldList['totalStories']['group'] = 'g4';
  96. $config->program->productview->dtable->fieldList['closedStoryRate']['name'] = 'closedStoryRate';
  97. $config->program->productview->dtable->fieldList['closedStoryRate']['title'] = $lang->program->closedStoryRate;
  98. $config->program->productview->dtable->fieldList['closedStoryRate']['minWidth'] = 100;
  99. $config->program->productview->dtable->fieldList['closedStoryRate']['type'] = 'progress';
  100. $config->program->productview->dtable->fieldList['closedStoryRate']['show'] = true;
  101. $config->program->productview->dtable->fieldList['closedStoryRate']['sortType'] = false;
  102. $config->program->productview->dtable->fieldList['closedStoryRate']['group'] = 'g4';
  103. $config->program->productview->dtable->fieldList['totalPlans']['name'] = 'totalPlans';
  104. $config->program->productview->dtable->fieldList['totalPlans']['title'] = $lang->productplan->shortCommon;
  105. $config->program->productview->dtable->fieldList['totalPlans']['type'] = 'number';
  106. $config->program->productview->dtable->fieldList['totalPlans']['show'] = true;
  107. $config->program->productview->dtable->fieldList['totalPlans']['sortType'] = false;
  108. $config->program->productview->dtable->fieldList['totalPlans']['group'] = 'g5';
  109. $config->program->productview->dtable->fieldList['totalProjects']['name'] = 'totalProjects';
  110. $config->program->productview->dtable->fieldList['totalProjects']['title'] = $lang->program->project;
  111. $config->program->productview->dtable->fieldList['totalProjects']['type'] = 'number';
  112. $config->program->productview->dtable->fieldList['totalProjects']['link'] = array('module' => 'product', 'method' => 'project', 'params' => 'status=all&&productID={id}');
  113. $config->program->productview->dtable->fieldList['totalProjects']['sortType'] = false;
  114. $config->program->productview->dtable->fieldList['totalProjects']['group'] = 'g5';
  115. $config->program->productview->dtable->fieldList['totalExecutions']['name'] = 'totalExecutions';
  116. $config->program->productview->dtable->fieldList['totalExecutions']['title'] = $lang->execution->common;
  117. $config->program->productview->dtable->fieldList['totalExecutions']['type'] = 'number';
  118. $config->program->productview->dtable->fieldList['totalExecutions']['show'] = true;
  119. $config->program->productview->dtable->fieldList['totalExecutions']['sortType'] = false;
  120. $config->program->productview->dtable->fieldList['totalExecutions']['group'] = 'g5';
  121. $config->program->productview->dtable->fieldList['testCaseCoverage']['name'] = 'testCaseCoverage';
  122. $config->program->productview->dtable->fieldList['testCaseCoverage']['title'] = $lang->program->testCaseCoverage;
  123. $config->program->productview->dtable->fieldList['testCaseCoverage']['minWidth'] = 100;
  124. $config->program->productview->dtable->fieldList['testCaseCoverage']['type'] = 'progress';
  125. $config->program->productview->dtable->fieldList['testCaseCoverage']['show'] = true;
  126. $config->program->productview->dtable->fieldList['testCaseCoverage']['sortType'] = false;
  127. $config->program->productview->dtable->fieldList['testCaseCoverage']['group'] = 'g6';
  128. $config->program->productview->dtable->fieldList['totalActivatedBugs']['name'] = 'totalActivatedBugs';
  129. $config->program->productview->dtable->fieldList['totalActivatedBugs']['title'] = $lang->program->totalActivatedBugs;
  130. $config->program->productview->dtable->fieldList['totalActivatedBugs']['minWidth'] = 86;
  131. $config->program->productview->dtable->fieldList['totalActivatedBugs']['type'] = 'number';
  132. $config->program->productview->dtable->fieldList['totalActivatedBugs']['show'] = true;
  133. $config->program->productview->dtable->fieldList['totalActivatedBugs']['sortType'] = false;
  134. $config->program->productview->dtable->fieldList['totalActivatedBugs']['group'] = 'g7';
  135. $config->program->productview->dtable->fieldList['totalBugs']['name'] = 'totalBugs';
  136. $config->program->productview->dtable->fieldList['totalBugs']['title'] = $lang->program->totalBugs;
  137. $config->program->productview->dtable->fieldList['totalBugs']['minWidth'] = 86;
  138. $config->program->productview->dtable->fieldList['totalBugs']['type'] = 'number';
  139. $config->program->productview->dtable->fieldList['totalBugs']['sortType'] = false;
  140. $config->program->productview->dtable->fieldList['totalBugs']['group'] = 'g7';
  141. $config->program->productview->dtable->fieldList['fixedRate']['name'] = 'fixedRate';
  142. $config->program->productview->dtable->fieldList['fixedRate']['title'] = $lang->program->fixedRate;
  143. $config->program->productview->dtable->fieldList['fixedRate']['minWidth'] = 80;
  144. $config->program->productview->dtable->fieldList['fixedRate']['type'] = 'progress';
  145. $config->program->productview->dtable->fieldList['fixedRate']['show'] = true;
  146. $config->program->productview->dtable->fieldList['fixedRate']['sortType'] = false;
  147. $config->program->productview->dtable->fieldList['fixedRate']['group'] = 'g7';
  148. $config->program->productview->dtable->fieldList['totalReleases']['name'] = 'totalReleases';
  149. $config->program->productview->dtable->fieldList['totalReleases']['title'] = $lang->release->common;
  150. $config->program->productview->dtable->fieldList['totalReleases']['minWidth'] = 90;
  151. $config->program->productview->dtable->fieldList['totalReleases']['type'] = 'number';
  152. $config->program->productview->dtable->fieldList['totalReleases']['show'] = true;
  153. $config->program->productview->dtable->fieldList['totalReleases']['sortType'] = false;
  154. $config->program->productview->dtable->fieldList['totalReleases']['group'] = 'g8';
  155. if($isEn) $config->program->productview->dtable->fieldList['totalReleases']['width'] = 140;
  156. $config->program->productview->dtable->fieldList['latestReleaseDate']['name'] = 'latestReleaseDate';
  157. $config->program->productview->dtable->fieldList['latestReleaseDate']['title'] = $lang->program->latestReleaseDate;
  158. $config->program->productview->dtable->fieldList['latestReleaseDate']['minWidth'] = 120;
  159. $config->program->productview->dtable->fieldList['latestReleaseDate']['type'] = 'date';
  160. $config->program->productview->dtable->fieldList['latestReleaseDate']['sortType'] = false;
  161. $config->program->productview->dtable->fieldList['latestReleaseDate']['group'] = 'g8';
  162. $config->program->productview->dtable->fieldList['latestRelease']['name'] = 'latestRelease';
  163. $config->program->productview->dtable->fieldList['latestRelease']['title'] = $lang->program->latestRelease;
  164. $config->program->productview->dtable->fieldList['latestRelease']['minWidth'] = 80;
  165. $config->program->productview->dtable->fieldList['latestRelease']['type'] = 'text';
  166. $config->program->productview->dtable->fieldList['latestRelease']['filterType'] = true;
  167. $config->program->productview->dtable->fieldList['latestRelease']['group'] = 'g8';
  168. global $app;
  169. $app->loadLang('project');
  170. /* DataTable fields of browse View. */
  171. $config->program->browse = new stdClass();
  172. $config->program->browse->dtable = new stdClass();
  173. $config->program->browse->dtable->fieldList = array();
  174. $config->program->browse->dtable->fieldList['name']['name'] = 'name';
  175. $config->program->browse->dtable->fieldList['name']['title'] = $lang->nameAB;
  176. $config->program->browse->dtable->fieldList['name']['width'] = 356;
  177. $config->program->browse->dtable->fieldList['name']['type'] = 'link';
  178. $config->program->browse->dtable->fieldList['name']['link'] = "RAWJS<function(info){const {row, col} = info; if(row.data.type == 'project') return {url:$.createLink('project', 'index', 'projectID=' + row.data.id)}; if(row.data.type == 'program') return {url:$.createLink('program', 'project', 'programID=' + row.data.id)};}>RAWJS";
  179. $config->program->browse->dtable->fieldList['name']['flex'] = 1;
  180. $config->program->browse->dtable->fieldList['name']['fixed'] = 'left';
  181. $config->program->browse->dtable->fieldList['name']['nestedToggle'] = true;
  182. $config->program->browse->dtable->fieldList['name']['checkbox'] = true;
  183. $config->program->browse->dtable->fieldList['name']['sortType'] = true;
  184. $config->program->browse->dtable->fieldList['name']['iconRender'] = 'RAWJS<function(val,row){ if(row.data.type === \'program\') return \'icon-cards-view text-gray\'; if(row.data.type === \'productLine\') return \'icon-scrum text-gray\'; if(row.data.type == \'project\') return \'icon-\' + (row.data.model == \'scrum\' ? \'sprint\' : row.data.model) + \' text-gray\'; return \'\';}>RAWJS';
  185. $config->program->browse->dtable->fieldList['name']['required'] = true;
  186. $config->program->browse->dtable->fieldList['name']['show'] = true;
  187. $config->program->browse->dtable->fieldList['name']['group'] = 1;
  188. $config->program->browse->dtable->fieldList['status']['name'] = 'status';
  189. $config->program->browse->dtable->fieldList['status']['title'] = $lang->program->status;
  190. $config->program->browse->dtable->fieldList['status']['minWidth'] = 60;
  191. $config->program->browse->dtable->fieldList['status']['type'] = 'status';
  192. $config->program->browse->dtable->fieldList['status']['sortType'] = true;
  193. $config->program->browse->dtable->fieldList['status']['statusMap'] = $lang->program->statusList;
  194. $config->program->browse->dtable->fieldList['status']['show'] = true;
  195. $config->program->browse->dtable->fieldList['status']['group'] = 2;
  196. $config->program->browse->dtable->fieldList['PM']['name'] = 'PM';
  197. $config->program->browse->dtable->fieldList['PM']['title'] = $lang->program->PM;
  198. $config->program->browse->dtable->fieldList['PM']['minWidth'] = 80;
  199. $config->program->browse->dtable->fieldList['PM']['type'] = 'avatarBtn';
  200. $config->program->browse->dtable->fieldList['PM']['sortType'] = true;
  201. $config->program->browse->dtable->fieldList['PM']['link'] = array('module' => 'user', 'method' => 'profile', 'params' => 'userID={PMUserID}');
  202. $config->program->browse->dtable->fieldList['PM']['data-toggle'] = 'modal';
  203. $config->program->browse->dtable->fieldList['PM']['data-size'] = 'sm';
  204. $config->program->browse->dtable->fieldList['PM']['show'] = true;
  205. $config->program->browse->dtable->fieldList['PM']['group'] = 2;
  206. $config->program->browse->dtable->fieldList['budget']['name'] = 'budget';
  207. $config->program->browse->dtable->fieldList['budget']['title'] = $lang->program->budget;
  208. $config->program->browse->dtable->fieldList['budget']['width'] = 90;
  209. $config->program->browse->dtable->fieldList['budget']['type'] = 'format';
  210. $config->program->browse->dtable->fieldList['budget']['align'] = 'right';
  211. $config->program->browse->dtable->fieldList['budget']['sortType'] = true;
  212. $config->program->browse->dtable->fieldList['budget']['show'] = true;
  213. $config->program->browse->dtable->fieldList['budget']['group'] = 3;
  214. $config->program->browse->dtable->fieldList['invested']['name'] = 'invested';
  215. $config->program->browse->dtable->fieldList['invested']['title'] = $lang->program->invested;
  216. $config->program->browse->dtable->fieldList['invested']['minWidth'] = 70;
  217. $config->program->browse->dtable->fieldList['invested']['width'] = 70;
  218. $config->program->browse->dtable->fieldList['invested']['type'] = 'format';
  219. $config->program->browse->dtable->fieldList['invested']['align'] = 'right';
  220. $config->program->browse->dtable->fieldList['invested']['sortType'] = false;
  221. $config->program->browse->dtable->fieldList['invested']['show'] = true;
  222. $config->program->browse->dtable->fieldList['invested']['group'] = 3;
  223. if($isEn) $config->program->browse->dtable->fieldList['invested']['minWidth'] = 120;
  224. $config->program->browse->dtable->fieldList['openedDate']['name'] = 'openedDate';
  225. $config->program->browse->dtable->fieldList['openedDate']['title'] = $lang->program->openedDate;
  226. $config->program->browse->dtable->fieldList['openedDate']['type'] = 'date';
  227. $config->program->browse->dtable->fieldList['openedDate']['sortType'] = true;
  228. $config->program->browse->dtable->fieldList['openedDate']['minWidth'] = 90;
  229. $config->program->browse->dtable->fieldList['openedDate']['group'] = 4;
  230. if($isEn) $config->program->browse->dtable->fieldList['openedDate']['minWidth'] = 120;
  231. $config->program->browse->dtable->fieldList['openedBy']['name'] = 'openedBy';
  232. $config->program->browse->dtable->fieldList['openedBy']['title'] = $lang->program->openedBy;
  233. $config->program->browse->dtable->fieldList['openedBy']['type'] = 'user';
  234. $config->program->browse->dtable->fieldList['openedBy']['sortType'] = true;
  235. $config->program->browse->dtable->fieldList['openedBy']['minWidth'] = 80;
  236. $config->program->browse->dtable->fieldList['openedBy']['group'] = 4;
  237. if($isEn) $config->program->browse->dtable->fieldList['openedBy']['minWidth'] = 100;
  238. $config->program->browse->dtable->fieldList['begin']['name'] = 'begin';
  239. $config->program->browse->dtable->fieldList['begin']['title'] = $lang->program->begin;
  240. $config->program->browse->dtable->fieldList['begin']['minWidth'] = 90;
  241. $config->program->browse->dtable->fieldList['begin']['type'] = 'date';
  242. $config->program->browse->dtable->fieldList['begin']['sortType'] = true;
  243. $config->program->browse->dtable->fieldList['begin']['show'] = true;
  244. $config->program->browse->dtable->fieldList['begin']['group'] = 5;
  245. $config->program->browse->dtable->fieldList['end']['name'] = 'end';
  246. $config->program->browse->dtable->fieldList['end']['title'] = $lang->program->end;
  247. $config->program->browse->dtable->fieldList['end']['minWidth'] = 90;
  248. $config->program->browse->dtable->fieldList['end']['type'] = 'date';
  249. $config->program->browse->dtable->fieldList['end']['sortType'] = true;
  250. $config->program->browse->dtable->fieldList['end']['show'] = true;
  251. $config->program->browse->dtable->fieldList['end']['group'] = 5;
  252. $config->program->browse->dtable->fieldList['realBegan']['name'] = 'realBegan';
  253. $config->program->browse->dtable->fieldList['realBegan']['title'] = $lang->program->realBeganAB;
  254. $config->program->browse->dtable->fieldList['realBegan']['minWidth'] = 90;
  255. $config->program->browse->dtable->fieldList['realBegan']['type'] = 'date';
  256. $config->program->browse->dtable->fieldList['realBegan']['sortType'] = true;
  257. $config->program->browse->dtable->fieldList['realBegan']['group'] = 5;
  258. $config->program->browse->dtable->fieldList['realEnd']['name'] = 'realEnd';
  259. $config->program->browse->dtable->fieldList['realEnd']['title'] = $lang->program->realEndAB;
  260. $config->program->browse->dtable->fieldList['realEnd']['minWidth'] = 90;
  261. $config->program->browse->dtable->fieldList['realEnd']['type'] = 'date';
  262. $config->program->browse->dtable->fieldList['realEnd']['sortType'] = true;
  263. $config->program->browse->dtable->fieldList['realEnd']['group'] = 5;
  264. $config->program->browse->dtable->fieldList['progress']['name'] = 'progress';
  265. $config->program->browse->dtable->fieldList['progress']['title'] = $lang->program->progressAB;
  266. $config->program->browse->dtable->fieldList['progress']['minWidth'] = 100;
  267. $config->program->browse->dtable->fieldList['progress']['type'] = 'progress';
  268. $config->program->browse->dtable->fieldList['progress']['show'] = true;
  269. $config->program->browse->dtable->fieldList['progress']['group'] = 5;
  270. if($config->edition != 'open')
  271. {
  272. $config->program->browse->dtable->fieldList['workflowGroup']['name'] = 'workflowGroup';
  273. $config->program->browse->dtable->fieldList['workflowGroup']['title'] = $lang->project->workflowGroup;
  274. $config->program->browse->dtable->fieldList['workflowGroup']['width'] = 120;
  275. $config->program->browse->dtable->fieldList['workflowGroup']['type'] = 'user';
  276. $config->program->browse->dtable->fieldList['workflowGroup']['show'] = false;
  277. $config->program->browse->dtable->fieldList['workflowGroup']['group'] = 6;
  278. if($isEn) $config->program->browse->dtable->fieldList['workflowGroup']['minWidth'] = 200;
  279. }
  280. $config->program->browse->dtable->fieldList['actions']['name'] = 'actions';
  281. $config->program->browse->dtable->fieldList['actions']['title'] = $lang->actions;
  282. $config->program->browse->dtable->fieldList['actions']['width'] = 160;
  283. $config->program->browse->dtable->fieldList['actions']['type'] = 'actions';
  284. $config->program->browse->dtable->fieldList['actions']['fixed'] = 'right';
  285. $config->program->browse->dtable->fieldList['actions']['actionsMap'] = array
  286. (
  287. 'program_start' => array('icon' => 'icon-start', 'hint' => $lang->program->start, 'url' => helper::createLink('program', 'start', "programID={id}"), 'data-toggle' => 'modal'),
  288. 'program_suspend' => array('icon' => 'icon-pause', 'hint' => $lang->program->suspend, 'url' => helper::createLink('program', 'suspend', "programID={id}"), 'data-toggle' => 'modal'),
  289. 'program_close' => array('icon' => 'icon-off', 'hint' => $lang->program->close, 'url' => helper::createLink('program', 'close', "programID={id}"), 'data-toggle' => 'modal'),
  290. 'program_activate' => array('icon' => 'icon-active', 'hint' => $lang->program->activate, 'url' => helper::createLink('program', 'activate', "programID={id}"), 'data-toggle' => 'modal'),
  291. 'program_other' => array('caret' => true, 'hint' => $lang->program->other, 'type' => 'dropdown'),
  292. 'program_edit' => array('icon' => 'icon-edit', 'hint' => $lang->program->edit, 'url' => helper::createLink('program', 'edit', "programID={id}")),
  293. 'program_create' => array('icon' => 'icon-split', 'hint' => $lang->program->children, 'url' => helper::createLink('program', 'create', "programID={id}")),
  294. 'program_delete' => array('icon' => 'icon-trash', 'hint' => $lang->program->delete),
  295. 'project_start' => array('icon' => 'icon-start', 'hint' => $lang->project->start, 'url' => helper::createLink('project', 'start', "projectID={id}"), 'data-toggle' => 'modal'),
  296. 'project_suspend' => array('icon' => 'icon-pause', 'hint' => $lang->project->suspend, 'url' => helper::createLink('project', 'suspend', "projectID={id}"), 'data-toggle' => 'modal'),
  297. 'project_close' => array('icon' => 'icon-off', 'hint' => $lang->project->close, 'url' => helper::createLink('project', 'close', "projectID={id}"), 'data-toggle' => 'modal'),
  298. 'project_activate' => array('icon' => 'icon-active', 'hint' => $lang->project->activate, 'url' => helper::createLink('project', 'activate', "projectID={id}"), 'data-toggle' => 'modal'),
  299. 'project_other' => array('caret' => true, 'hint' => $lang->program->other, 'type' => 'dropdown'),
  300. 'project_edit' => array('icon' => 'icon-edit', 'hint' => $lang->project->edit, 'url' => helper::createLink('project', 'edit', "projectID={id}"), 'data-app' => 'project'),
  301. 'project_team' => array('icon' => 'icon-groups', 'hint' => $lang->project->manageMembers, 'url' => helper::createLink('project', 'team', "projectID={id}")),
  302. 'project_group' => array('icon' => 'icon-lock', 'hint' => $lang->project->group, 'url' => helper::createLink('project', 'group', "projectID={id}")),
  303. 'project_more' => array('icon' => 'icon-ellipsis-v', 'hint' => $lang->project->moreActions, 'type' => 'dropdown', 'caret' => false),
  304. 'project_link' => array('icon' => 'icon-link', 'hint' => $lang->project->manageProducts, 'url' => helper::createLink('project', 'manageProducts', "projectID={id}")),
  305. 'project_whitelist' => array('icon' => 'icon-shield-check', 'hint' => $lang->project->whitelist, 'url' => helper::createLink('project', 'whitelist', "projectID={id}")),
  306. 'project_delete' => array('icon' => 'icon-trash', 'hint' => $lang->project->delete)
  307. );