* if task is wati or doing, display edit and delete link.

This commit is contained in:
zhujinyong
2013-03-02 13:21:27 +00:00
parent 2f12e3b0f6
commit 1e24cb4a12
2 changed files with 6 additions and 2 deletions

View File

@@ -444,6 +444,7 @@ class task extends control
$this->session->set('estimateList', $this->app->getURI(true));
$this->view->task = $this->task->getById($taskID);
$this->view->estimates = $this->task->getTaskEstimate($taskID);
$this->view->title = $this->lang->task->record;
$this->display();

View File

@@ -33,8 +33,11 @@
<td class="a-left"><?php echo $estimate->work;?></td>
<td align='center'>
<?php
common::printIcon('task', 'editEstimate', "estimateID=$estimate->id", '', 'list', '', '', '', true);
common::printIcon('task', 'deleteEstimate', "estimateID=$estimate->id", '', 'list', '', 'hiddenwin');
if($task->status == 'wait' or $task->status == 'doing')
{
common::printIcon('task', 'editEstimate', "estimateID=$estimate->id", '', 'list', '', '', '', true);
common::printIcon('task', 'deleteEstimate', "estimateID=$estimate->id", '', 'list', '', 'hiddenwin');
}
?>
</td>
</tr>