* [bug#57116,done,0.5h] show gantt label and search toggle.
This commit is contained in:
@@ -18,28 +18,24 @@ include './ganttfields.html.php';
|
||||
|
||||
if($app->rawModule == 'programplan')
|
||||
{
|
||||
$productDropdown = null;
|
||||
if($project->stageBy == 'product')
|
||||
{
|
||||
$viewName = $productID != 0 ? zget($productList, $productID) : $lang->product->allProduct;
|
||||
$items = array();
|
||||
foreach($productList as $key => $productName) $items[] = array('text' => $productName, 'url' => $this->createLink('programplan', 'browse', "projectID=$projectID&productID=$key&type=gantt"));
|
||||
featureBar
|
||||
$productDropdown = dropdown
|
||||
(
|
||||
dropdown
|
||||
(
|
||||
btn(set::type('link'), setClass('no-underline'), $viewName),
|
||||
set::items($items)
|
||||
)
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
featureBar
|
||||
(
|
||||
btn(setClass('ghost mr-2', ($browseType != 'bysearch' ? 'active' : '')), $lang->programplan->gantt, set::url($this->createLink('programplan', 'browse', "projectID=$projectID&productID=$productID&type=gantt"))),
|
||||
$hasSearch ? li(searchToggle(set::module('projectTask'), set::open($browseType == 'bysearch'))) : null
|
||||
btn(set::type('link'), setClass('no-underline'), $viewName),
|
||||
set::items($items)
|
||||
);
|
||||
}
|
||||
featureBar
|
||||
(
|
||||
btn(setClass('ghost mr-2', ($browseType != 'bysearch' ? 'active' : '')), $lang->programplan->gantt, set::url($this->createLink('programplan', 'browse', "projectID=$projectID&productID=$productID&type=gantt"))),
|
||||
$productDropdown,
|
||||
$hasSearch ? li(searchToggle(set::module('projectTask'), set::open($browseType == 'bysearch'))) : null
|
||||
);
|
||||
toolbar
|
||||
(
|
||||
btnGroup
|
||||
|
||||
Reference in New Issue
Block a user