* Finish task #46656.
This commit is contained in:
@@ -69,7 +69,7 @@
|
||||
$extendFields = $this->productplan->getFlowExtendFields();
|
||||
foreach($extendFields as $extendField) echo "<th>{$extendField->name}</th>";
|
||||
?>
|
||||
<th class='c-actions-6 text-center'><?php echo $lang->actions;?></th>
|
||||
<th class='c-actions-9 text-center'><?php echo $lang->actions;?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -108,8 +108,12 @@
|
||||
</td>
|
||||
<td class='c-title text-left<?php if($plan->parent == '-1') echo ' has-child';?>' title="<?php echo $plan->title?>">
|
||||
<?php
|
||||
$suffix = '';
|
||||
if($plan->end < helper::now()) $suffix = "<span class='label label-danger label-badge'>{$this->lang->productplan->expired}</span>";
|
||||
if($plan->parent == '-1') $suffix .= '<a class="task-toggle" data-id="' . $plan->id . '"><i class="icon icon-angle-double-right"></i></a>';
|
||||
if(!empty($suffix)) echo '<div class="plan-name has-prefix has-suffix">';
|
||||
echo html::a(inlink('view', "id=$plan->id"), $plan->title);
|
||||
if($plan->parent == '-1') echo '<a class="task-toggle" data-id="' . $plan->id . '"><i class="icon icon-angle-double-right"></i></a>';
|
||||
if(!empty($suffix)) echo $suffix . '</div>';
|
||||
?>
|
||||
</td>
|
||||
<?php if($this->session->currentProductType != 'normal'):?>
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
$attr = "target='hiddenwin'";
|
||||
$isOnlyBody = false;
|
||||
}
|
||||
$class = $plan->status == 'wait' ? $class : 'disabled';
|
||||
$class = $plan->status == 'wait' ? (isset($class) ? $class : '' ) : 'disabled';
|
||||
common::printLink('productplan', 'start', "planID=$plan->id", "<i class='icon-play'></i>{$lang->productplan->startAB}", '', "class='btn btn-link {$class}'{$attr} title='{$lang->productplan->start}'", '', $isOnlyBody);
|
||||
$class = $plan->status == 'doing' ? '' : 'disabled';
|
||||
common::printLink('productplan', 'finish', "planID=$plan->id", "<i class='icon-checked'></i>{$lang->productplan->finishAB}", '', "class='btn btn-link {$class}' target='hiddenwin' title='{$lang->productplan->finish}'");
|
||||
|
||||
Reference in New Issue
Block a user