This commit is contained in:
zhujinyong
2021-03-08 16:55:25 +08:00
15 changed files with 89 additions and 77 deletions
+9 -2
View File
@@ -780,7 +780,7 @@ class docModel extends model
$this->config->doc->search['actionURL'] = $actionURL;
$this->config->doc->search['queryID'] = $queryID;
$this->config->doc->search['params']['product']['values'] = array(''=>'') + $this->loadModel('product')->getPairs('nocode', $this->session->project) + array('all'=>$this->lang->doc->allProduct);
$this->config->doc->search['params']['execution']['values'] = array(''=>'') + $this->loadModel('execution')->getPairs($this->session->project, 'all', 'noclosed') + array('all'=>$this->lang->doc->allProject);
$this->config->doc->search['params']['execution']['values'] = array(''=>'') + $this->loadModel('execution')->getPairs($this->session->project, 'all', 'noclosed') + array('all'=>$this->lang->doc->allExecution);
$this->config->doc->search['params']['lib']['values'] = array(''=>'', $libID => ($libID ? $libs[$libID] : 0), 'all' => $this->lang->doclib->all);
/* Get the modules. */
@@ -1683,6 +1683,13 @@ class docModel extends model
return $html;
}
/**
* Set past menu.
*
* @param string $fastLib
* @access public
* @return string
*/
public function setFastMenu($fastLib)
{
$actions = '';
@@ -1821,7 +1828,7 @@ class docModel extends model
{
$navCSS .= <<<EOF
#subHeader {margin-top: -50px; background: rgba(0,0,0,0);}
#pageActions .btn-link {color: #84a2e2; font-size: 14px; line-height: 18px; border: #84a2e2 1px solid;}
#pageActions .btn-link {color: #fff; font-size: 14px; line-height: 18px; border: #fff 1px solid;}
.header-angle-btn {padding: 0;}
.header-angle-btn .btn{padding: 6px 12px;}
EOF;
+5 -1
View File
@@ -26,8 +26,12 @@
<div class="table-empty-tip">
<p>
<span class="text-muted"><?php echo $lang->project->empty;?></span>
<?php if(common::hasPriv('project', 'createGuide')):?>
<?php if(isset($this->config->maxVersion) and common::hasPriv('project', 'createGuide')):?>
<?php echo html::a($this->createLink('project', 'createGuide'), "<i class='icon icon-plus'></i> " . $lang->my->createProgram, '', "class='btn btn-info' data-toggle=modal");?>
<?php elseif($this->config->systemMode == 'new' and common::hasPriv('project', 'create')):?>
<?php echo html::a($this->createLink('project', 'create'), '<i class="icon icon-plus"></i>' . $lang->project->create, '', 'class="btn btn-info" data-toggle="modal" data-target="#guideDialog"');?>
<?php elseif($this->config->systemMode == 'classic' and common::hasPriv('execution', 'create')):?>
<?php echo html::a($this->createLink('execution', 'create'), '<i class="icon icon-plus"></i>' . $lang->execution->create, '', 'class="btn btn-info"');?>
<?php endif;?>
</p>
</div>
+17 -16
View File
@@ -127,8 +127,9 @@ class product extends control
/* Lower browse type. */
$browseType = strtolower($browseType);
/* Load datatable. */
/* Load datatable and execution. */
$this->loadModel('datatable');
$this->loadModel('execution');
/* Set product, module and query. */
$productID = $this->product->saveState($productID, $this->products);
@@ -202,7 +203,7 @@ class product extends control
{
$this->session->set('currentProductType', $product->type);
$projectProducts = $this->product->getProductsByProject($this->session->project);
$productPlans = $this->loadModel('execution')->getPlans($projectProducts);
$productPlans = $this->execution->getPlans($projectProducts);
if($browseType == 'bybranch') $param = $branch;
$stories = $this->story->getExecutionStories($this->session->project, $productID, $branch, $sort, $browseType, $param, 'story', '', $pager);
@@ -311,9 +312,9 @@ class product extends control
$this->app->rawModule = 'program';
$this->app->rawMethod = 'product';
$this->lang->navGroup->program = 'program';
$this->loadModel('program')->setPGMViewMenu($programID);
$this->lang->program->switcherMenu = $this->program->getPGMSwitcher($programID, true);
$this->lang->program->mainMenuAction = $this->program->getPGMMainAction();
$this->loadModel('program')->setViewMenu($programID);
$this->lang->program->switcherMenu = $this->program->getSwitcher($programID, true);
$this->lang->program->mainMenuAction = $this->program->getMainAction();
}
$this->loadModel('user');
@@ -362,7 +363,7 @@ class product extends control
/* Init vars. */
$product = $this->product->getById($productID);
$unmodifiableProjects = array();
$canChangePGM = true;
$canChangeProgram = true;
$singleLinkProjects = array();
$multipleLinkProjects = array();
$linkStoriesProjects = array();
@@ -375,7 +376,7 @@ class product extends control
->andWhere('t2.deleted')->eq('0')
->fetchPairs('project', 'product');
if(!empty($unmodifiableProjects)) $canChangePGM = false;
if(!empty($unmodifiableProjects)) $canChangeProgram = false;
/* Get the projects linked with this product. */
$projectPairs = $this->dao->select('t2.id,t2.name')->from(TABLE_PROJECTPRODUCT)->alias('t1')
@@ -389,7 +390,7 @@ class product extends control
{
foreach($projectPairs as $projectID => $projectName)
{
if($canChangePGM)
if($canChangeProgram)
{
$products = $this->dao->select('product')->from(TABLE_PROJECTPRODUCT)->where('project')->eq($projectID)->fetchPairs();
if(count($products) == 1)
@@ -453,9 +454,9 @@ class product extends control
$this->app->rawModule = 'program';
$this->app->rawMethod = 'product';
$this->lang->navGroup->program = 'program';
$this->loadModel('program')->setPGMViewMenu($programID);
$this->lang->program->switcherMenu = $this->program->getPGMSwitcher($programID, true);
$this->lang->program->mainMenuAction = $this->program->getPGMMainAction();
$this->loadModel('program')->setViewMenu($programID);
$this->lang->program->switcherMenu = $this->program->getSwitcher($programID, true);
$this->lang->program->mainMenuAction = $this->program->getMainAction();
}
/* Get the relevant person in charge. */
@@ -488,7 +489,7 @@ class product extends control
$this->view->programs = array('') + $this->loadModel('program')->getTopPairs();
$this->view->lines = $lines;
$this->view->URSRPairs = $this->loadModel('custom')->getURSRPairs();
$this->view->canChangePGM = $canChangePGM;
$this->view->canChangeProgram = $canChangeProgram;
$this->view->singleLinkProjects = $singleLinkProjects;
$this->view->multipleLinkProjects = $multipleLinkProjects;
$this->view->linkStoriesProjects = $linkStoriesProjects;
@@ -545,9 +546,9 @@ class product extends control
$this->app->rawModule = 'program';
$this->app->rawMethod = 'product';
$this->lang->navGroup->program = 'program';
$this->loadModel('program')->setPGMViewMenu($programID);
$this->lang->program->switcherMenu = $this->program->getPGMSwitcher($programID, true);
$this->lang->program->mainMenuAction = $this->program->getPGMMainAction();
$this->loadModel('program')->setViewMenu($programID);
$this->lang->program->switcherMenu = $this->program->getSwitcher($programID, true);
$this->lang->program->mainMenuAction = $this->program->getMainAction();
$this->loadModel('user');
$poUsers = $this->user->getPairs('nodeleted|pofirst', $appendPoUsers);
@@ -909,7 +910,7 @@ class product extends control
$this->view->extra = $extra;
$this->view->products = $products;
$this->view->projectID = $moduleGroup == 'project' ? $this->session->project : 0;
$this->view->programs = $this->loadModel('program')->getPGMPairs(true);
$this->view->programs = $this->loadModel('program')->getPairs(true);
$this->view->openApp = $moduleGroup;
$this->display();
}
+2 -2
View File
@@ -3,10 +3,10 @@ $(function()
$('#program').change(function()
{
var programID = $(this).val();
if(!canChangePGM || singleLinkProjects.length !== 0 || multipleLinkProjects.length !== 0)
if(!canChangeProgram || singleLinkProjects.length !== 0 || multipleLinkProjects.length !== 0)
{
$('#changeProgram').modal({show: true});
if(!canChangePGM)
if(!canChangeProgram)
{
$('#program').val(oldProgramID);
$('#program').trigger("chosen:updated");
+7 -7
View File
@@ -65,13 +65,13 @@ $lang->product->unResolvedBugsTitle = 'Active Bugs';
$lang->product->assignToNullBugs = 'Nicht zugewiesene [B]';
$lang->product->assignToNullBugsTitle = 'Unassigned Bugs';
$lang->product->confirmDelete = " Möchten Sie {$lang->productCommon} löschen?";
$lang->product->errorNoProduct = "Kein {$lang->productCommon} erstellt!";
$lang->product->accessDenied = "Sie haben keinen Zugriff auf {$lang->productCommon}.";
$lang->product->PGMChangeTip = "The projects linked with this {$lang->productCommon}: %s will be transferred to the modified program set together.";
$lang->product->notChangePGMTip = "The {$lang->SRCommon} of {$lang->productCommon} has been linked to the following projects, please cancel the link before proceeding";
$lang->product->confirmChangePGM = "The projects linked with this {$lang->productCommon}: %s is also linked with other products, whether to transfer projects to the modified program set.";
$lang->product->changePGMError = "The {$lang->SRCommon} of this {$lang->productCommon} has been linked to the project, please unlink it before proceeding";
$lang->product->confirmDelete = " Möchten Sie {$lang->productCommon} löschen?";
$lang->product->errorNoProduct = "Kein {$lang->productCommon} erstellt!";
$lang->product->accessDenied = "Sie haben keinen Zugriff auf {$lang->productCommon}.";
$lang->product->programChangeTip = "The projects linked with this {$lang->productCommon}: %s will be transferred to the modified program set together.";
$lang->product->notChangeProgramTip = "The {$lang->SRCommon} of {$lang->productCommon} has been linked to the following projects, please cancel the link before proceeding";
$lang->product->confirmChangeProgram = "The projects linked with this {$lang->productCommon}: %s is also linked with other products, whether to transfer projects to the modified program set.";
$lang->product->changeProgramError = "The {$lang->SRCommon} of this {$lang->productCommon} has been linked to the project, please unlink it before proceeding";
$lang->product->id = 'ID';
$lang->product->program = "Program";
+7 -7
View File
@@ -65,13 +65,13 @@ $lang->product->unResolvedBugsTitle = 'Active Bugs';
$lang->product->assignToNullBugs = 'Unassigned [B]';
$lang->product->assignToNullBugsTitle = 'Unassigned Bugs';
$lang->product->confirmDelete = " Do you want to delete the {$lang->productCommon}?";
$lang->product->errorNoProduct = "No {$lang->productCommon} is created yet!";
$lang->product->accessDenied = "You have no access to the {$lang->productCommon}.";
$lang->product->PGMChangeTip = "The projects linked with this {$lang->productCommon}: %s will be transferred to the modified program set together.";
$lang->product->notChangePGMTip = "The {$lang->SRCommon} of {$lang->productCommon} has been linked to the following projects, please cancel the link before proceeding";
$lang->product->confirmChangePGM = "The projects linked with this {$lang->productCommon}: %s is also linked with other products, whether to transfer projects to the modified program set.";
$lang->product->changePGMError = "The {$lang->SRCommon} of this {$lang->productCommon} has been linked to the project, please unlink it before proceeding";
$lang->product->confirmDelete = " Do you want to delete the {$lang->productCommon}?";
$lang->product->errorNoProduct = "No {$lang->productCommon} is created yet!";
$lang->product->accessDenied = "You have no access to the {$lang->productCommon}.";
$lang->product->programChangeTip = "The projects linked with this {$lang->productCommon}: %s will be transferred to the modified program set together.";
$lang->product->notChangeProgramTip = "The {$lang->SRCommon} of {$lang->productCommon} has been linked to the following projects, please cancel the link before proceeding";
$lang->product->confirmChangeProgram = "The projects linked with this {$lang->productCommon}: %s is also linked with other products, whether to transfer projects to the modified program set.";
$lang->product->changeProgramError = "The {$lang->SRCommon} of this {$lang->productCommon} has been linked to the project, please unlink it before proceeding";
$lang->product->id = 'ID';
$lang->product->program = "Program";
+7 -7
View File
@@ -65,13 +65,13 @@ $lang->product->unResolvedBugsTitle = 'Bugs Ouverts';
$lang->product->assignToNullBugs = 'Orphelins [B]';
$lang->product->assignToNullBugsTitle = 'Bugs non assignés';
$lang->product->confirmDelete = "Voulez-vous vraiment supprimer le {$lang->productCommon} ?";
$lang->product->errorNoProduct = "Aucun {$lang->productCommon} n'est créé pour l'instant !";
$lang->product->accessDenied = "Vous n'avez pas accès au {$lang->productCommon}.";
$lang->product->PGMChangeTip = "The projects linked with this {$lang->productCommon}: %s will be transferred to the modified program set together.";
$lang->product->notChangePGMTip = "The {$lang->SRCommon} of {$lang->productCommon} has been linked to the following projects, please cancel the link before proceeding";
$lang->product->confirmChangePGM = "The projects linked with this {$lang->productCommon}: %s is also linked with other products, whether to transfer projects to the modified program set.";
$lang->product->changePGMError = "The {$lang->SRCommon} of this {$lang->productCommon} has been linked to the project, please unlink it before proceeding";
$lang->product->confirmDelete = "Voulez-vous vraiment supprimer le {$lang->productCommon} ?";
$lang->product->errorNoProduct = "Aucun {$lang->productCommon} n'est créé pour l'instant !";
$lang->product->accessDenied = "Vous n'avez pas accès au {$lang->productCommon}.";
$lang->product->programChangeTip = "The projects linked with this {$lang->productCommon}: %s will be transferred to the modified program set together.";
$lang->product->notChangeProgramTip = "The {$lang->SRCommon} of {$lang->productCommon} has been linked to the following projects, please cancel the link before proceeding";
$lang->product->confirmChangeProgram = "The projects linked with this {$lang->productCommon}: %s is also linked with other products, whether to transfer projects to the modified program set.";
$lang->product->changeProgramError = "The {$lang->SRCommon} of this {$lang->productCommon} has been linked to the project, please unlink it before proceeding";
$lang->product->id = 'ID';
$lang->product->program = "Program";
+7 -7
View File
@@ -65,13 +65,13 @@ $lang->product->unResolvedBugsTitle = 'Kích hoạt Bugs';
$lang->product->assignToNullBugs = 'Chưa giao [B]';
$lang->product->assignToNullBugsTitle = 'Chưa giao Bugs';
$lang->product->confirmDelete = " Bạn có muốn xóa {$lang->productCommon} này?";
$lang->product->errorNoProduct = "Không có {$lang->productCommon} được tạo!";
$lang->product->accessDenied = "Bạn không có quyền truy cập tới {$lang->productCommon} này.";
$lang->product->PGMChangeTip = "The projects linked with this {$lang->productCommon}: %s will be transferred to the modified program set together.";
$lang->product->notChangePGMTip = "The {$lang->SRCommon} of {$lang->productCommon} has been linked to the following projects, please cancel the link before proceeding";
$lang->product->confirmChangePGM = "The projects linked with this {$lang->productCommon}: %s is also linked with other products, whether to transfer projects to the modified program set.";
$lang->product->changePGMError = "The {$lang->SRCommon} of this {$lang->productCommon} has been linked to the project, please unlink it before proceeding";
$lang->product->confirmDelete = " Bạn có muốn xóa {$lang->productCommon} này?";
$lang->product->errorNoProduct = "Không có {$lang->productCommon} được tạo!";
$lang->product->accessDenied = "Bạn không có quyền truy cập tới {$lang->productCommon} này.";
$lang->product->programChangeTip = "The projects linked with this {$lang->productCommon}: %s will be transferred to the modified program set together.";
$lang->product->notChangeProgramTip = "The {$lang->SRCommon} of {$lang->productCommon} has been linked to the following projects, please cancel the link before proceeding";
$lang->product->confirmChangeProgram = "The projects linked with this {$lang->productCommon}: %s is also linked with other products, whether to transfer projects to the modified program set.";
$lang->product->changeProgramError = "The {$lang->SRCommon} of this {$lang->productCommon} has been linked to the project, please unlink it before proceeding";
$lang->product->id = 'ID';
$lang->product->program = "Program";
+7 -7
View File
@@ -65,13 +65,13 @@ $lang->product->unResolvedBugsTitle = '未解决Bug';
$lang->product->assignToNullBugs = '未指派Bug';
$lang->product->assignToNullBugsTitle = '未指派Bug';
$lang->product->confirmDelete = " 您确定删除该{$lang->productCommon}吗?";
$lang->product->errorNoProduct = "还没有创建{$lang->productCommon}!";
$lang->product->accessDenied = "您无权访问该{$lang->productCommon}";
$lang->product->PGMChangeTip = "如下项目只关联了该{$lang->productCommon}, 将直接转移至新项目集下。";
$lang->product->notChangePGMTip = "该{$lang->productCommon}的{$lang->SRCommon}已经关联到如下项目,请取消关联后再操作";
$lang->product->confirmChangePGM = "如下项目既关联了该{$lang->productCommon}又关联了其他{$lang->productCommon},请确认是否继续关联该{$lang->productCommon},勾选后将取消与其他{$lang->productCommon}的关联关系,同时转移至新项目集下。";
$lang->product->changePGMError = "该{$lang->productCommon}的{$lang->SRCommon}已经关联到项目,请取消关联后再操作";
$lang->product->confirmDelete = " 您确定删除该{$lang->productCommon}吗?";
$lang->product->errorNoProduct = "还没有创建{$lang->productCommon}!";
$lang->product->accessDenied = "您无权访问该{$lang->productCommon}";
$lang->product->programChangeTip = "如下项目只关联了该{$lang->productCommon}, 将直接转移至新项目集下。";
$lang->product->notChangeProgramTip = "该{$lang->productCommon}的{$lang->SRCommon}已经关联到如下项目,请取消关联后再操作";
$lang->product->confirmChangeProgram = "如下项目既关联了该{$lang->productCommon}又关联了其他{$lang->productCommon},请确认是否继续关联该{$lang->productCommon},勾选后将取消与其他{$lang->productCommon}的关联关系,同时转移至新项目集下。";
$lang->product->changeProgramError = "该{$lang->productCommon}的{$lang->SRCommon}已经关联到项目,请取消关联后再操作";
$lang->product->id = '编号';
$lang->product->program = "所属项目集";
+5 -5
View File
@@ -444,11 +444,11 @@ class productModel extends model
/* init currentModule and currentMethod for report and story. */
if($currentModule == 'story')
{
{
$storyMethods = ",track,create,batchcreate,batchclose,";
if(strpos($storyMethods, "," . $currentMethod . ",") === false) $currentModule = 'product';
if($currentMethod == 'view' || $currentMethod == 'change' || $currentMethod == 'review') $currentMethod = 'browse';
}
}
if($currentMethod == 'report') $currentMethod = 'browse';
$this->app->loadLang('project');
@@ -576,7 +576,7 @@ class productModel extends model
->fetchPairs('project', 'product');
if(!empty($unmodifiableProjects))
{
dao::$errors[] = $this->lang->product->changePGMError;
dao::$errors[] = $this->lang->product->changeProgramError;
return false;
}
}
@@ -698,8 +698,8 @@ class productModel extends model
foreach($data->modules as $id => $name)
{
if(!$name) continue;
$line->name = strip_tags(trim($name));
$line->root = $data->programs[$id];
$line->name = strip_tags(trim($name));
$line->root = $data->programs[$id];
if(is_numeric($id))
{
+2 -2
View File
@@ -21,8 +21,8 @@
$unfoldStories = isset($config->product->browse->unfoldStories) ? json_decode($config->product->browse->unfoldStories, true) : array();
$unfoldStories = zget($unfoldStories, $productID, array());
js::set('unfoldStories', $unfoldStories);
js::set('unfoldAll', $lang->project->treeLevel['all']);
js::set('foldAll', $lang->project->treeLevel['root']);
js::set('unfoldAll', $lang->execution->treeLevel['all']);
js::set('foldAll', $lang->execution->treeLevel['root']);
js::set('storyType', $storyType);
$lang->story->createCommon = $storyType == 'story' ? $lang->story->createStory : $lang->story->createRequirement;
$isProjectStory = $this->app->rawModule == 'projectstory';
+2 -2
View File
@@ -23,7 +23,7 @@
<tbody>
<?php if($this->config->systemMode == 'new'):?>
<tr>
<th class='w-140px'><?php echo $lang->program->PGMCommon;?></th>
<th class='w-140px'><?php echo $lang->program->common;?></th>
<td><?php echo html::select('program', $programs, '', "class='form-control chosen' required");?></td><td></td>
</tr>
<?php endif;?>
@@ -57,7 +57,7 @@
<?php echo html::select('type', $productTypeList, 'normal', "class='form-control'");?>
</td>
<td></td>
</tr>
</tr>
<tr class='hide'>
<th><?php echo $lang->product->status;?></th>
<td><?php echo html::hidden('status', 'normal');?></td>
+8 -8
View File
@@ -14,7 +14,7 @@
<?php include '../../common/view/kindeditor.html.php';?>
<?php js::set('noProject', false);?>
<?php js::set('oldProgramID', $product->program);?>
<?php js::set('canChangePGM', $canChangePGM);?>
<?php js::set('canChangeProgram', $canChangeProgram);?>
<?php js::set('singleLinkProjects', $singleLinkProjects);?>
<?php js::set('multipleLinkProjects', $multipleLinkProjects);?>
<style>
@@ -70,11 +70,11 @@
<tr>
<th><?php echo $lang->product->desc;?></th>
<td colspan='2'><?php echo html::textarea('desc', htmlspecialchars($product->desc), "rows='8' class='form-control'");?></td>
</tr>
</tr>
<tr>
<th><?php echo $lang->product->acl;?></th>
<td colspan='2'><?php echo nl2br(html::radio('acl', $lang->product->aclList, $product->acl, "onclick='setWhite(this.value);'", 'block'));?></td>
</tr>
</tr>
<tr class="<?php if($product->acl == 'open') echo 'hidden';?>" id="whitelistBox">
<th><?php echo $lang->whitelist;?></th>
<td><?php echo html::select('whitelist[]', $users, $product->whitelist, 'class="form-control chosen" multiple');?></td>
@@ -97,15 +97,15 @@
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"><i class="icon icon-close"></i></button>
<?php if($canChangePGM):?>
<?php if($canChangeProgram):?>
<h4 class="modal-title"><?php echo $lang->product->changeProgram;?></h4>
<?php endif;?>
</div>
<div class="modal-body">
<table class='table table-form'>
<?php if(!$canChangePGM):?>
<?php if(!$canChangeProgram):?>
<tr>
<th class='text-left'><?php echo $lang->product->notChangePGMTip;?></th>
<th class='text-left'><?php echo $lang->product->notChangeProgramTip;?></th>
</tr>
<?php foreach($linkStoriesProjects as $project):?>
<tr>
@@ -115,7 +115,7 @@
<?php endif;?>
<?php if($singleLinkProjects):?>
<tr>
<th class='text-left'><?php echo $lang->product->PGMChangeTip;?></th>
<th class='text-left'><?php echo $lang->product->programChangeTip;?></th>
</tr>
<?php foreach($singleLinkProjects as $project):?>
<tr>
@@ -125,7 +125,7 @@
<?php endif;?>
<?php if($multipleLinkProjects):?>
<tr>
<th class='text-left'><?php echo $lang->product->confirmChangePGM;?></th>
<th class='text-left'><?php echo $lang->product->confirmChangeProgram;?></th>
</tr>
<tr>
<td><?php echo html::checkbox('projects', $multipleLinkProjects);?></td>
+3 -3
View File
@@ -61,9 +61,9 @@
<td class='c-status' title='<?php echo $status;?>'>
<span class="status-project status-<?php echo $project->status?>"><?php echo $status;?></span>
</td>
<td><?php echo $project->budget != 0 ? zget($lang->program->currencySymbol, $project->budgetUnit) . number_format($project->budget, 2) : $this->lang->program->future;?></td>
<td class="text-center" title="<?php echo $project->hours->totalEstimate . ' ' . $lang->project->workHour;?>"><?php echo $project->hours->totalEstimate . ' ' . $lang->project->workHourUnit;?></td>
<td class="text-center" title="<?php echo $project->hours->totalConsumed . ' ' . $lang->project->workHour;?>"><?php echo $project->hours->totalConsumed . ' ' . $lang->project->workHourUnit;?></td>
<td><?php echo $project->budget != 0 ? zget($lang->program->currencySymbol, $project->budgetUnit) . number_format($project->budget, 2) : $this->lang->project->future;?></td>
<td class="text-center" title="<?php echo $project->hours->totalEstimate . ' ' . $lang->project->workHour;?>"><?php echo $project->hours->totalEstimate . ' ' . $lang->execution->workHourUnit;?></td>
<td class="text-center" title="<?php echo $project->hours->totalConsumed . ' ' . $lang->project->workHour;?>"><?php echo $project->hours->totalConsumed . ' ' . $lang->execution->workHourUnit;?></td>
<td>
<div class='progress-pie' data-doughnut-size='80' data-color='#00da88' data-value='<?php echo $project->hours->progress;?>' data-width='24' data-height='24' data-back-color='#e8edf3'>
<div class='progress-info'><?php echo $project->hours->progress;?>%</div>
+1 -1
View File
@@ -84,7 +84,7 @@
<?php endif;?>
<td>
<?php foreach($story->cases as $caseID => $case):?>
<?php echo html::a($this->createLink('testcase', 'view', "caseID=$caseID", '', false, $case->execution), $case->title, '', "title='$case->title'") . '<br/>';?>
<?php echo html::a($this->createLink('testcase', 'view', "caseID=$caseID", '', false, $case->project), $case->title, '', "title='$case->title'") . '<br/>';?>
<?php endforeach;?>
</td>
<?php if(isset($config->maxVersion)):?>