From 13eecc18ebb9fa0c2976d3b2bf40761741c72f9a Mon Sep 17 00:00:00 2001 From: Catouse Date: Wed, 16 May 2018 10:09:12 +0800 Subject: [PATCH] * change productplan/browse view. --- module/productplan/view/browse.html.php | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/module/productplan/view/browse.html.php b/module/productplan/view/browse.html.php index 16b99fe58e..2b9cd14819 100644 --- a/module/productplan/view/browse.html.php +++ b/module/productplan/view/browse.html.php @@ -52,7 +52,7 @@ productplan->hour;?> productplan->project;?> productplan->desc;?> - actions;?> + actions;?> @@ -79,20 +79,16 @@ projectID)) echo html::a(helper::createLink('project', 'task', 'projectID=' . $plan->projectID), '');?>
desc;?>
-
- createLink('productplan', 'delete', "planID=$plan->id&confirm=yes"); - echo html::a("javascript:ajaxDelete(\"$deleteURL\",\"productplan\",confirmDelete)", '', '', "class='btn btn-icon' title='{$lang->productplan->delete}'"); - } - ?> -
id"), '', '', "class='btn' title='{$lang->project->create}'"); if(common::hasPriv('productplan', 'linkStory')) echo html::a(inlink('view', "planID=$plan->id&type=story&orderBy=id_desc&link=true"), '', '', "class='btn' title='{$lang->productplan->linkStory}'"); if(common::hasPriv('productplan', 'linkBug') and $config->global->flow != 'onlyStory') echo html::a(inlink('view', "planID=$plan->id&type=bug&orderBy=id_desc&link=true"), '', '', "class='btn' title='{$lang->productplan->linkBug}'"); common::printIcon('productplan', 'edit', "planID=$plan->id", $plan, 'list'); + if(common::hasPriv('productplan', 'delete', $plan)) + { + $deleteURL = $this->createLink('productplan', 'delete', "planID=$plan->id&confirm=yes"); + echo html::a("javascript:ajaxDelete(\"$deleteURL\",\"productplan\",confirmDelete)", '', '', "class='btn btn-icon' title='{$lang->productplan->delete}'"); + } ?>