* Finish task#9113.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user