* if task is wati or doing, display edit and delete link.
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user