From d556f52381b78211dfebd5f8487815cf024e0c2a Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Fri, 10 Dec 2021 16:11:06 +0800 Subject: [PATCH] * Finish task #45806. --- module/programplan/control.php | 8 +++++++- module/programplan/view/gantt.html.php | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/module/programplan/control.php b/module/programplan/control.php index 9e0dd9a07f..8faba1e7c3 100644 --- a/module/programplan/control.php +++ b/module/programplan/control.php @@ -64,7 +64,13 @@ class programplan extends control $products = $this->loadModel('product')->getProducts($projectID); $this->lang->modulePageNav = $this->product->select($products, $this->productID, 'programplan', 'browse', $type, 0, 0, '', false); - if(common::hasPriv('programplan', 'create')) $this->lang->TRActions = html::a($this->createLink('programplan', 'create', "projectID=$projectID"), " " . $this->lang->programplan->create, '', "class='btn btn-primary'"); + $this->lang->TRActions = ""; + $this->lang->TRActions .= "
    "; + $this->lang->TRActions .= "
  • " . $this->lang->execution->gantt->exportImg . "
  • "; + $this->lang->TRActions .= "
  • " . $this->lang->execution->gantt->exportPDF . "
  • "; + $this->lang->TRActions .= "
"; + + if(common::hasPriv('programplan', 'create')) $this->lang->TRActions .= html::a($this->createLink('programplan', 'create', "projectID=$projectID"), " " . $this->lang->programplan->create, '', "class='btn btn-primary'"); $selectCustom = 0; // Display date and task settings. $dateDetails = 1; // Gantt chart detail date display. diff --git a/module/programplan/view/gantt.html.php b/module/programplan/view/gantt.html.php index 41fda4a4b9..3437c6b8cc 100644 --- a/module/programplan/view/gantt.html.php +++ b/module/programplan/view/gantt.html.php @@ -26,7 +26,7 @@ form {display: block; margin-top: 0em; margin-block-end: 1em;} rawModule);?> rawMethod);?> - +