* Finish task#9113.

This commit is contained in:
hufangzhou
2021-01-25 16:54:03 +08:00
parent 24c4c1b309
commit fef3a4c410
3 changed files with 21 additions and 5 deletions
-2
View File
@@ -105,8 +105,6 @@ class projectStory extends control
{
if(empty($productID)) $productID = key($this->products);
$this->lang->menugroup->story = 'projectstory';
$this->lang->projectstory->menu->track['subModule'] = 'story';
$this->projectstory->setMenu($this->products, $productID, $branch);
$this->lang->story->requirement = str_replace($this->lang->URCommon, $this->lang->URCommon, $this->lang->story->requirement);
$this->lang->story->story = str_replace($this->lang->SRCommon, $this->lang->SRCommon, $this->lang->story->story);
+6 -2
View File
@@ -1364,11 +1364,15 @@ class story extends control
$pager = new pager($recTotal, $recPerPage, $pageID);
$tracks = $this->story->getTracks($productID, $branch, $pager);
if($this->app->rawModule == 'projectstory') $projectProducts = $this->product->getProductsByProject($this->session->PRJ);
$this->view->title = $this->lang->story->track;
$this->view->position[] = $this->lang->story->track;
$this->view->tracks = $tracks;
$this->view->pager = $pager;
$this->view->tracks = $tracks;
$this->view->pager = $pager;
$this->view->productID = $productID;
$this->view->projectProducts = isset($projectProducts) ? $projectProducts : array();
$this->display();
}
+15 -1
View File
@@ -16,11 +16,25 @@
</p>
</div>
<?php else:?>
<?php $style = $this->app->rawModule == 'projectstory' ? "style='overflow: unset;'" : '';?>
<div class='main-table' data-ride="table">
<table class='table table-bordered' id="trackList">
<thead>
<tr>
<th><?php echo $lang->story->requirement;?></th>
<th <?php echo $style;?>>
<?php if($this->app->rawModule == 'projectstory'): ?>
<div class="dropdown">
<?php echo html::a('javascript:;', "<i class='icon icon-product'></i>". $projectProducts[$productID]->name . '<span class="caret"></span>', '', 'class="dropdown-toggle" data-toggle="dropdown"');?>
<ul class="dropdown-menu">
<?php foreach($projectProducts as $product): ?>
<li><?php echo html::a($this->createLink('projectstory', 'track', "productID=$product->id"), $product->name);?></li>
<?php endforeach;?>
</ul>
</div>
<?php else:?>
<?php echo $lang->story->requirement;?>
<?php endif;?>
</th>
<th><?php echo $lang->story->story;?></th>
<th><?php echo $lang->story->design;?></th>
<th><?php echo $lang->story->case;?></th>