diff --git a/api/v1/entries/productline.php b/api/v1/entries/productline.php deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/api/v1/entries/productlines.php b/api/v1/entries/productlines.php deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/api/v1/entries/productplan.php b/api/v1/entries/productplan.php new file mode 100644 index 0000000000..3df13abe58 --- /dev/null +++ b/api/v1/entries/productplan.php @@ -0,0 +1,80 @@ + + * @package entries + * @version 1 + * @link http://www.zentao.net + */ +class productplanEntry extends Entry +{ + /** + * GET method. + * + * @param int $planID + * @access public + * @return void + */ + public function get($planID) + { + $fields = $this->param('fields'); + + $control = $this->loadController('productplan', 'view'); + $control->view($planID); + + $data = $this->getData(); + if(!$data or !isset($data->status)) return $this->send400('error'); + if(isset($data->status) and $data->status == 'fail') + { + return isset($data->code) and $data->code == 404 ? $this->send404() : $this->sendError(400, $data->message); + } + + $plan = $this->format($data->data->plan, 'begin:date,end:date,deleted:bool'); + + return $this->send(200, $plan); + } + + /** + * PUT method. + * + * @param int $planID + * @access public + * @return void + */ + public function put($planID) + { + $oldPlan = $this->loadModel('productplan')->getByID($planID); + + /* Set $_POST variables. */ + $fields = 'title,begin,end,desc'; + $this->batchSetPost($fields, $oldPlan); + + $control = $this->loadController('productplan', 'edit'); + $control->edit($planID); + + $data = $this->getData(); + if(isset($data->result) and $data->result == 'fail') return $this->sendError(400, $data->message); + + $plan = $this->productplan->getByID($planID); + $this->sendSuccess(200, $this->format($plan, 'begin:date,end:date')); + } + + /** + * DELETE method. + * + * @param int $productID + * @access public + * @return void + */ + public function delete($planID) + { + $control = $this->loadController('productplan', 'delete'); + $control->delete($planID, 'yes'); + + $this->getData(); + $this->sendSuccess(200, 'success'); + } +} diff --git a/api/v1/entries/productplans.php b/api/v1/entries/productplans.php new file mode 100644 index 0000000000..50586dd352 --- /dev/null +++ b/api/v1/entries/productplans.php @@ -0,0 +1,44 @@ + + * @package entries + * @version 1 + * @link http://www.zentao.net + */ +class productplansEntry extends entry +{ + /** + * GET method. + * + * @param int $productID + * @access public + * @return void + */ + public function get($productID = 0) + { + if(!$productID) $productID = $this->param('product'); + if(!$productID) return $this->sendError(400, 'No product id.'); + + $control = $this->loadController('productplan', 'browse'); + $control->browse($productID, $this->param('branch', 0), $this->param('status', 'all'), $this->param('order', 'begin_desc'), 0, $this->param('limit', 20), $this->param('page', 1)); + + /* Response */ + $data = $this->getData(); + if(isset($data->status) and $data->status == 'success') + { + $result = array(); + $plans = $data->data->plans; + foreach($plans as $plan) $result[] = $plan; + + return $this->send(200, array('productplans' => $result)); + } + + if(isset($data->status) and $data->status == 'fail') return $this->sendError(400, $data->message); + + return $this->sendError(400, 'error'); + } +} diff --git a/api/v1/entries/products.php b/api/v1/entries/products.php index e3c0dc7b76..9c88576cd8 100644 --- a/api/v1/entries/products.php +++ b/api/v1/entries/products.php @@ -12,7 +12,7 @@ class productsEntry extends entry { /** - * POST method. + * GET method. * * @param int $projectID * @access public diff --git a/api/v1/entries/release.php b/api/v1/entries/release.php new file mode 100644 index 0000000000..d005662ab7 --- /dev/null +++ b/api/v1/entries/release.php @@ -0,0 +1,78 @@ + + * @package entries + * @version 1 + * @link http://www.zentao.net + */ +class releaseEntry extends Entry +{ + /** + * GET method. + * + * @param int $planID + * @access public + * @return void + */ + public function get($releaseID) + { + $control = $this->loadController('release', 'view'); + $control->view($releaseID); + + $data = $this->getData(); + if(!$data or !isset($data->status)) return $this->send400('error'); + if(isset($data->status) and $data->status == 'fail') + { + return isset($data->code) and $data->code == 404 ? $this->send404() : $this->sendError(400, $data->message); + } + + $plan = $this->format($data->data->release, 'date:date,deleted:bool'); + + return $this->send(200, $plan); + } + + /** + * PUT method. + * + * @param int $releaseID + * @access public + * @return void + */ + public function put($releaseID) + { + $oldRelease = $this->loadModel('release')->getByID($releaseID); + + /* Set $_POST variables. */ + $fields = 'name,build,status,desc'; + $this->batchSetPost($fields, $oldRelease); + + $control = $this->loadController('release', 'edit'); + $control->edit($releaseID); + + $data = $this->getData(); + if(isset($data->result) and $data->result == 'fail') return $this->sendError(400, $data->message); + + $release = $this->release->getByID($releaseID); + $this->sendSuccess(200, $this->format($release, 'date:date,deleted:bool')); + } + + /** + * DELETE method. + * + * @param int $releaseID + * @access public + * @return void + */ + public function delete($releaseID) + { + $control = $this->loadController('release', 'delete'); + $control->delete($releaseID, 'yes'); + + $this->getData(); + $this->sendSuccess(200, 'success'); + } +} diff --git a/api/v1/entries/releases.php b/api/v1/entries/releases.php new file mode 100644 index 0000000000..131d306a1c --- /dev/null +++ b/api/v1/entries/releases.php @@ -0,0 +1,44 @@ + + * @package entries + * @version 1 + * @link http://www.zentao.net + */ +class releasesEntry extends entry +{ + /** + * GET method. + * + * @param int $productID + * @access public + * @return void + */ + public function get($productID = 0) + { + if(!$productID) $productID = $this->param('product'); + if(!$productID) return $this->sendError(400, 'No product id.'); + + $control = $this->loadController('release', 'browse'); + $control->browse($productID, $this->param('branch', 0), $this->param('status', 'all')); + + /* Response */ + $data = $this->getData(); + if(isset($data->status) and $data->status == 'success') + { + $result = array(); + $releases = $data->data->releases; + foreach($releases as $release) $result[] = $release; + + return $this->send(200, array('releases' => $result)); + } + + if(isset($data->status) and $data->status == 'fail') return $this->sendError(400, $data->message); + + return $this->sendError(400, 'error'); + } +} diff --git a/config/routes.php b/config/routes.php index 62255b3112..5d00080a0e 100644 --- a/config/routes.php +++ b/config/routes.php @@ -9,11 +9,20 @@ $routes['/tokens'] = 'tokens'; $routes['/configurations'] = 'configs'; $routes['/configurations/:name'] = 'config'; -$routes['/products'] = 'products'; -$routes['/products/:id'] = 'product'; +$routes['/products'] = 'products'; +$routes['/products/:id'] = 'product'; + $routes['/productlines'] = 'productLines'; $routes['/productlines/:id'] = 'productLine'; +$routes['/productplans'] = 'productPlans'; +$routes['/product/:id/productplans'] = 'productPlans'; +$routes['/productplans/:id'] = 'productPlan'; + +$routes['/releases'] = 'releases'; +$routes['/product/:id/releases'] = 'releases'; +$routes['/releases/:id'] = 'release'; + $routes['/products/:id/stories'] = 'stories'; $routes['/executions/:id/stories'] = 'executionStories'; $routes['/stories/:id'] = 'story'; diff --git a/lib/front/front.class.php b/lib/front/front.class.php index b097da7a91..0cae6b372e 100644 --- a/lib/front/front.class.php +++ b/lib/front/front.class.php @@ -278,7 +278,7 @@ class html extends baseHTML { $colorHue = (html::stringToCode($user->account) * $hueDistance) % 360; $style .= "background: hsl($colorHue, $saturation, $lightness);"; - if($size) $style .= 'font-size: ' . round($size * 2 / 3) . 'px;'; + if(is_numeric($size)) $style .= 'font-size: ' . round($size * 2 / 3) . 'px;'; } if(!empty($style)) $style = "style='$style'"; diff --git a/module/action/model.php b/module/action/model.php index eba7679086..06abe6dae7 100755 --- a/module/action/model.php +++ b/module/action/model.php @@ -781,7 +781,7 @@ class actionModel extends model $docs = $this->doc->getPrivDocs(array_keys($libs), 0, 'all'); $actionCondition = $this->getActionCondition(); - if(!$actionCondition and isset($this->app->user->rights['acls']['actions'])) return array(); + if(!$actionCondition and !$this->app->user->admin and isset($this->app->user->rights['acls']['actions'])) return array(); /* Get actions. */ $actions = $this->dao->select('*')->from(TABLE_ACTION) diff --git a/module/common/view/kanban.html.php b/module/common/view/kanban.html.php index 9a6cf6bd3f..2f6100ee6a 100644 --- a/module/common/view/kanban.html.php +++ b/module/common/view/kanban.html.php @@ -33,6 +33,7 @@ #kanbanList .kanban-item.has-left-border.border-left-red {border-left-color: #ff5d5d;} #kanbanList .kanban-item.has-left-border.border-left-blue {border-left-color: #0991ff;} +.kanban-affixed {padding-top: 72px;} .kanban-affixed > .kanban-header {position: fixed!important; top: 0; background: rgba(80,80,80,.9); color: #fff; z-index: 100;} #kanbanList .kanban-header-col[data-type="doingProject"], @@ -341,9 +342,9 @@ function renderKanbanItem(item, $item, col) */ function affixKanbanHeader($kanbanBoard, affixed) { - $kanbanBoard.toggleClass('kanban-affixed', !!affixed); var $header = $kanbanBoard.children('.kanban-header'); $header.css('width', affixed ? $kanbanBoard.width() : ''); + $kanbanBoard.toggleClass('kanban-affixed', !!affixed); $kanbanBoard.css('padding-top', affixed ? $header.outerHeight() : ''); } @@ -387,17 +388,31 @@ $.extend($.fn.kanban.Constructor.DEFAULTS, /* laneItemsClass: 'scrollbar-hover', */ // only show scrollbar on mouse hover itemRender: renderKanbanItem, useFlex: false, + showZeroCount: true, onRenderHeaderCol: function($col, col) { if(col.type === 'doingProject') $col.attr('data-span-text', doingText); }, - onRenderKanban: function($kanban) + onRenderKanban: function($kanban, kanbanData) { $kanban.find('.kanban-lane-name').each(function(index) { var color = kanbanColorList[index % kanbanColorList.length]; $(this).css('background-color', color); }); + + /* Update project count and execution count */ + var doingProjectCount = 0; + var doingExecutionCount = 0; + var $doingProjectItems = $kanban.find('.kanban-lane-col[data-type="doingProject"] > .kanban-lane-items'); + if($doingProjectItems.length) + { + doingProjectCount = $doingProjectItems.find('.project-item').length; + doingExecutionCount = $doingProjectItems.find('.execution-item').length; + } + $kanban.find('.kanban-header-col[data-type="doingProject"] > .title > .count').text(doingProjectCount || 0); + $kanban.find('.kanban-header-col[data-type="doingExecution"] > .title > .count').text(doingExecutionCount || 0); + updateKanbanAffixState(); } }); diff --git a/module/mr/model.php b/module/mr/model.php index 110bab59a4..16c589a401 100644 --- a/module/mr/model.php +++ b/module/mr/model.php @@ -66,7 +66,7 @@ class mrModel extends model $MR = $this->dao->select('id,title') ->from(TABLE_MR) ->where('deleted')->eq('0') - ->AndWhere('repoID')->eq($repoID) + ->andWhere('repoID')->eq($repoID) ->orderBy('id')->fetchPairs('id', 'title'); return array('' => '') + $MR; } @@ -299,7 +299,9 @@ class mrModel extends model /* It can only get todo from GitLab API by its assignee. So here should use sudo as the assignee to get the todo list. */ /* In this case, ignore sync todo for reviewer due to an issue in GitLab API. */ $accountList = $this->dao->select('assignee')->from(TABLE_MR) - ->where('gitlabID')->eq($gitlabID) + ->where('deleted')->eq('0') + ->andWhere('status')->eq('opened') + ->andWhere('gitlabID')->eq($gitlabID) ->andWhere('targetProject')->eq($projectID) ->fetchPairs(); diff --git a/module/product/css/all.css b/module/product/css/all.css index ef18226e2f..39217434d9 100644 --- a/module/product/css/all.css +++ b/module/product/css/all.css @@ -44,7 +44,6 @@ th.table-nest-title .table-nest-toggle {top: 12px; opacity: .6;} th.table-nest-title .table-nest-toggle:hover {opacity: 1;} #productTableList .icon-product:before {content: '\e98f'; width: 22px; height: 22px; background: none; color: rgb(166, 170, 184); top: 0; line-height: 22px; margin-right: 2px; font-size: 14px;} -#productTableList>tr>td:first-child {padding-left: 10px;} .table.has-sort-head thead>tr>th>a:after, .table.has-sort-head thead>tr>th>a:before {top: -3px;} .main-table thead>tr>th {padding: 0px 8px; line-height: 24px;} diff --git a/module/product/view/all.html.php b/module/product/view/all.html.php index 001ed85c10..0a89d06094 100644 --- a/module/product/view/all.html.php +++ b/module/product/view/all.html.php @@ -238,4 +238,10 @@ + + + diff --git a/module/productplan/control.php b/module/productplan/control.php index 92d221689a..1bd51618a2 100644 --- a/module/productplan/control.php +++ b/module/productplan/control.php @@ -189,6 +189,8 @@ class productplan extends control } return $this->send($response); } + + if($this->viewType == 'json') return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess)); die(js::locate(inlink('browse', "productID=$plan->product&branch=$plan->branch"), 'parent')); } } @@ -249,7 +251,11 @@ class productplan extends control { $planID = (int)$planID; $plan = $this->productplan->getByID($planID, true); - if(!$plan) die(js::error($this->lang->notFound) . js::locate('back')); + if(!$plan) + { + if(defined('RUN_MODE') && RUN_MODE == 'api') return $this->send(array('status' => 'fail', 'code' => 404, 'message' => '404 Not found')); + die(js::error($this->lang->notFound) . js::locate('back')); + } $this->session->set('storyList', $this->app->getURI(true) . '&type=' . 'story', 'product'); $this->session->set('bugList', $this->app->getURI(true) . '&type=' . 'bug', 'qa'); diff --git a/module/release/control.php b/module/release/control.php index 27fa02a681..bee5bea94b 100644 --- a/module/release/control.php +++ b/module/release/control.php @@ -259,9 +259,12 @@ class release extends control $release = $this->release->getById($releaseID); $this->dao->update(TABLE_BUILD)->set('deleted')->eq(1)->where('id')->eq($release->build)->andWhere('name')->eq($release->name)->exec(); } + return $this->send($response); } + if($this->viewType == 'json') return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess)); + $locateLink = $this->session->releaseList ? $this->session->releaseList : inlink('browse', "productID={$release->product}"); die(js::locate($locateLink, 'parent')); } diff --git a/module/tree/model.php b/module/tree/model.php index 555c847a0b..a547c4c696 100644 --- a/module/tree/model.php +++ b/module/tree/model.php @@ -1033,16 +1033,16 @@ class treeModel extends model { $productID = zget($extra, 'productID', 0); $projectID = $extra['projectID']; - return html::a(helper::createLink('projectstory', 'story', "projectID=$projectID&productID=$productID&branch=&browseType=byModule¶m={$module->id}"), $module->name, '_self', "id='module{$module->id}'"); + return html::a(helper::createLink('projectstory', 'story', "projectID=$projectID&productID=$productID&branch=&browseType=byModule¶m={$module->id}"), $module->name, '_self', "id='module{$module->id}' title='{$module->name}'"); } elseif(isset($extra['executionID']) and !empty($extra['executionID'])) { $executionID = $extra['executionID']; - return html::a(helper::createLink('execution', 'story', "executionID=$executionID&orderBy=order_desc&type=byModule¶m={$module->id}"), $module->name, '_self', "id='module{$module->id}'"); + return html::a(helper::createLink('execution', 'story', "executionID=$executionID&orderBy=order_desc&type=byModule¶m={$module->id}"), $module->name, '_self', "id='module{$module->id}' title='{$module->name}'"); } else { - return html::a(helper::createLink('product', 'browse', "root={$module->root}&branch=&type=byModule¶m={$module->id}"), $module->name, '_self', "id='module{$module->id}'"); + return html::a(helper::createLink('product', 'browse', "root={$module->root}&branch=&type=byModule¶m={$module->id}"), $module->name, '_self', "id='module{$module->id}' title='{$module->name}'"); } } @@ -1075,7 +1075,7 @@ class treeModel extends model { $executionID = $extra['executionID']; $productID = $extra['productID']; - return html::a(helper::createLink('execution', 'task', "executionID={$executionID}&type=byModule¶m={$module->id}"), $module->name, '_self', "id='module{$module->id}'"); + return html::a(helper::createLink('execution', 'task', "executionID={$executionID}&type=byModule¶m={$module->id}"), $module->name, '_self', "id='module{$module->id}' title='{$module->name}'"); } /** @@ -1090,7 +1090,7 @@ class treeModel extends model public function createProjectStoryLink($type, $module, $extra) { $productID = $extra['productID']; - return html::a(helper::createLink('projectstory', 'story', "projectID={$extra['executionID']}&productID=$productID&branch=&browseType=byModule¶m={$module->id}"), $module->name, '_self', "id='module{$module->id}'"); + return html::a(helper::createLink('projectstory', 'story', "projectID={$extra['executionID']}&productID=$productID&branch=&browseType=byModule¶m={$module->id}"), $module->name, '_self', "id='module{$module->id}' title='{$module->name}'"); } /** @@ -1103,7 +1103,7 @@ class treeModel extends model */ public function createRequirementLink($type, $module) { - return html::a(helper::createLink($this->app->rawModule, $this->app->rawMethod, "root={$module->root}&branch=&type=byModule¶m={$module->id}&storyType=requirement"), $module->name, '_self', "id='module{$module->id}'"); + return html::a(helper::createLink($this->app->rawModule, $this->app->rawMethod, "root={$module->root}&branch=&type=byModule¶m={$module->id}&storyType=requirement"), $module->name, '_self', "id='module{$module->id}' title='{$module->name}'"); } /** @@ -1115,7 +1115,7 @@ class treeModel extends model */ public function createDocLink($type, $module, $extra = '') { - return html::a(helper::createLink('doc', 'browse', "libID={$module->root}&browseType=byModule¶m={$module->id}"), $module->name, '_self', "id='module{$module->id}'"); + return html::a(helper::createLink('doc', 'browse', "libID={$module->root}&browseType=byModule¶m={$module->id}"), $module->name, '_self', "id='module{$module->id}' title='{$module->name}'"); } /** @@ -1187,7 +1187,7 @@ class treeModel extends model */ public function createBugLink($type, $module) { - return html::a(helper::createLink('bug', 'browse', "root={$module->root}&branch=&type=byModule¶m={$module->id}"), $module->name, '_self', "id='module{$module->id}'"); + return html::a(helper::createLink('bug', 'browse', "root={$module->root}&branch=&type=byModule¶m={$module->id}"), $module->name, '_self', "id='module{$module->id}' title='{$module->name}'"); } /** @@ -1202,7 +1202,7 @@ class treeModel extends model $moduleName = $this->app->tab == 'project' ? 'project' : 'testcase'; $methodName = $this->app->tab == 'project' ? 'testcase' : 'browse'; $projectParam = $this->app->tab == 'project' ? "projectID={$this->session->project}&" : ''; - return html::a(helper::createLink($moduleName, $methodName, $projectParam . "root={$module->root}&branch=&type=byModule¶m={$module->id}"), $module->name, '_self', "id='module{$module->id}' data-app='{$this->app->tab}'"); + return html::a(helper::createLink($moduleName, $methodName, $projectParam . "root={$module->root}&branch=&type=byModule¶m={$module->id}"), $module->name, '_self', "id='module{$module->id}' data-app='{$this->app->tab}' title='{$module->name}'"); } /** @@ -1214,7 +1214,7 @@ class treeModel extends model */ public function createTestTaskLink($type, $module, $extra) { - return html::a(helper::createLink('testtask', 'cases', "taskID=$extra&type=byModule&module={$module->id}"), $module->name, '_self', "id='module{$module->id}'"); + return html::a(helper::createLink('testtask', 'cases', "taskID=$extra&type=byModule&module={$module->id}"), $module->name, '_self', "id='module{$module->id}' title='{$module->name}'"); } /** @@ -1227,7 +1227,7 @@ class treeModel extends model */ public function createCaseLibLink($type, $module) { - return html::a(helper::createLink('caselib', 'browse', "root={$module->root}&type=byModule¶m={$module->id}"), $module->name, '_self', "id='module{$module->id}'"); + return html::a(helper::createLink('caselib', 'browse', "root={$module->root}&type=byModule¶m={$module->id}"), $module->name, '_self', "id='module{$module->id}' title='{$module->name}'"); } /** @@ -1257,7 +1257,7 @@ class treeModel extends model */ public function createFeedbackLink($type, $module) { - return html::a(helper::createLink('feedback', $this->app->methodName, "type=byModule¶m={$module->id}"), $module->name, '_self', "id='module{$module->id}'"); + return html::a(helper::createLink('feedback', $this->app->methodName, "type=byModule¶m={$module->id}"), $module->name, '_self', "id='module{$module->id}' title='{$module->name}'"); } /** @@ -1270,7 +1270,7 @@ class treeModel extends model */ public function createTrainSkillLink($type, $module, $extra = '') { - return html::a(helper::createLink('trainskill', 'browse', "type=byModule¶m={$module->id}"), $module->name, '', "id='module{$module->id}'"); + return html::a(helper::createLink('trainskill', 'browse', "type=byModule¶m={$module->id}"), $module->name, '', "id='module{$module->id}' title='{$module->name}'"); } /** @@ -1283,7 +1283,7 @@ class treeModel extends model */ public function createTrainCourseLink($type, $module, $extra = '') { - return html::a(helper::createLink('traincourse', 'browse', "type=byModule¶m={$module->id}"), $module->name, '', "id='module{$module->id}'"); + return html::a(helper::createLink('traincourse', 'browse', "type=byModule¶m={$module->id}"), $module->name, '', "id='module{$module->id}' title='{$module->name}'"); } /** @@ -1296,7 +1296,7 @@ class treeModel extends model */ public function createTrainPostLink($type, $module, $extra = '') { - return html::a(helper::createLink('trainpost', 'browse', "type=byModule¶m={$module->id}"), $module->name, '', "id='module{$module->id}'"); + return html::a(helper::createLink('trainpost', 'browse', "type=byModule¶m={$module->id}"), $module->name, '', "id='module{$module->id}' title='{$module->name}'"); } /** diff --git a/module/tutorial/lang/en.php b/module/tutorial/lang/en.php index 4e8cd5dc02..805e104a1e 100644 --- a/module/tutorial/lang/en.php +++ b/module/tutorial/lang/en.php @@ -59,7 +59,7 @@ $lang->tutorial->tasks['createProject']['desc'] = "
Create a {$lang->projectCo $lang->tutorial->tasks['manageTeam'] = array('title' => "Manage {$lang->projectCommon} Team"); $lang->tutorial->tasks['manageTeam']['mode'] = 'new'; -$lang->tutorial->tasks['manageTeam']['nav'] = array('app' => 'project', 'module' => 'project', 'method' => 'managemembers', 'menuModule' => '', 'menu' => '#navbar>.nav>li[data-id="browse"],#cards>.col>.panel:first .project-name,#projectTableList>tr:first>.c-name a,#navbar>.nav>li[data-id="settings"],#subNavbar>.nav>li[data-id="members"],.manage-team-btn', 'target' => '.manage-team-btn', 'form' => '#teamForm', 'requiredFields' => 'accounts1', 'submit' => '#submit', 'targetPageName' => 'Manage team members'); +$lang->tutorial->tasks['manageTeam']['nav'] = array('app' => 'project', 'module' => 'project', 'method' => 'managemembers', 'menuModule' => '', 'menu' => '#navbar>.nav>li[data-id="browse"],#cards>.col>.panel:first .project-name,#projectTableList>tr:first>.c-name a,#navbar>.nav>li[data-id="settings"],#subNavbar>.nav>li[data-id="members"],.manage-team-btn', 'target' => '.manage-team-btn', 'form' => '#teamForm', 'requiredFields' => 'accounts1,accounts', 'submit' => '#submit', 'targetPageName' => 'Manage team members'); $lang->tutorial->tasks['manageTeam']['desc'] = "
Manage {$lang->projectCommon} team members:
在系统创建一个新 $lang->tutorial->tasks['manageExecutionTeam'] = array('title' => "管理{$lang->executionCommon}团队"); $lang->tutorial->tasks['manageExecutionTeam']['mode'] = 'classic'; -$lang->tutorial->tasks['manageExecutionTeam']['nav'] = array('app' => 'execution', 'module' => 'execution', 'method' => 'managemembers', 'menuModule' => '', 'menu' => '#navbar>.nav>li[data-id="browse"],#cards>.col>.panel:first .project-name,#executionTableList>tr:first>.c-name>a,#navbar>.nav>li[data-id="settings"],#subNavbar>.nav>li[data-id="team"],.manage-team-btn', 'target' => '.manage-team-btn', 'form' => '#teamForm', 'requiredFields' => 'account1', 'submit' => '#submit', 'targetPageName' => '团队管理'); +$lang->tutorial->tasks['manageExecutionTeam']['nav'] = array('app' => 'execution', 'module' => 'execution', 'method' => 'managemembers', 'menuModule' => '', 'menu' => '#navbar>.nav>li[data-id="browse"],#cards>.col>.panel:first .project-name,#executionTableList>tr:first>.c-name>a,#navbar>.nav>li[data-id="settings"],#subNavbar>.nav>li[data-id="team"],.manage-team-btn', 'target' => '.manage-team-btn', 'form' => '#teamForm', 'requiredFields' => 'account1,accounts', 'submit' => '#submit', 'targetPageName' => '团队管理'); $lang->tutorial->tasks['manageExecutionTeam']['desc'] = "
管理{$lang->executionCommon}团队成员: