* Add top menu for feedback.

This commit is contained in:
tanghucheng
2022-10-15 08:52:40 +08:00
parent 91ae21caec
commit 2d0901b36c
5 changed files with 14 additions and 1 deletions
+4
View File
@@ -2311,6 +2311,10 @@ class productModel extends model
$objectID = $module == 'project' ? 'projectID' : 'executionID';
return helper::createLink($module, $method, "$objectID=$extra&productID=%s");
}
elseif($module == 'feedback')
{
return helper::createLink($module, $method, "browseType=byProduct&productID=%s");
}
return $link;
}
@@ -29,6 +29,7 @@
div#closed {width: 90px; height: 25px; line-height: 25px; background-color: #ddd; color: #3c495c; text-align: center; margin-left: 15px; border-radius: 2px;}
#gray-line {width: 230px; height: 1px; margin-left: 10px; margin-bottom:2px; background-color: #ddd;}
#swapper li >.selected {color: #0c64eb!important;background: #e9f2fb!important;}
#dropMenu .col-footer .selected{color: #2e7fff!important;background: #e6f0ff!important; padding: 1px 10px;border-radius: 4px;}
</style>
<?php
$productCounts = array();
@@ -136,6 +137,10 @@ $closedProductsHtml .= '</ul>';
<?php //echo html::a(helper::createLink('product', 'all'), '<i class="icon icon-cards-view muted"></i> ' . $lang->product->all, '', 'class="not-list-item"'); ?>
<?php //echo html::a(helper::createLink('project', 'browse', 'programID=0&browseType=all'), '<i class="icon icon-cards-view muted"></i> ' . $lang->project->all, '', 'class="not-list-item"'); ?>
<a class='pull-right toggle-right-col not-list-item'><?php echo $lang->product->closed?><i class='icon icon-angle-right'></i></a>
<?php if($this->app->tab == 'feedback'):?>
<?php $selected = !$productID ? 'selected' : '';?>
<?php echo html::a(helper::createLink('feedback', 'admin', 'browseType=wait'), $lang->product->all, '', "class='not-list-item pull-left toggle-left-col $selected'"); ?>
<?php endif;?>
</div>
</div>
<div id="gray-line" hidden></div>
+2 -1
View File
@@ -48,7 +48,8 @@ class tree extends control
else if($this->app->tab == 'feedback')
{
$products = $this->loadModel('feedback')->getGrantProducts();
if($viewType == 'feedback') $this->lang->modulePageNav = $this->product->select($products, $rootID, 'tree', 'browse', 'feedback', '', '', '', false);
if(!$rootID) $rootID = key($products);
$this->loadModel('feedback')->setMenu($rootID);
}
/* According to the type, set the module root and modules. */
+1
View File
@@ -50,6 +50,7 @@ $lang->tree->successSave = '成功保存';
$lang->tree->successFixed = '成功修正数据!';
$lang->tree->repeatName = '模块名“%s”已经存在!';
$lang->tree->shouldNotBlank = '模块名不能为空格!';
$lang->tree->syncProductModule = '同步产品模块';
$lang->tree->module = '模块';
$lang->tree->name = '模块名称';
+2
View File
@@ -105,6 +105,8 @@ if($viewType == 'doc' or $viewType == 'api')
</div>
<?php if($viewType == 'story' and $allProduct and $canBeChanged):?>
<div class="panel-actions btn-toolbar"><?php echo html::a('javascript:toggleCopy()', $lang->tree->syncFromProduct, '', "class='btn btn-sm btn-primary'")?></div>
<?php elseif($viewType == 'feedback'):?>
<div class="panel-actions btn-toolbar"><?php echo html::a($this->createLink('feedback', 'syncProduct', '', '', true), $lang->tree->syncProductModule, '', "class='btn btn-sm btn-primary iframe'");?></div>
<?php endif;?>
</div>
<div class="panel-body">