* finish task 2016.

This commit is contained in:
ChuJilu
2014-10-24 14:08:27 +08:00
parent 71d329e28b
commit 067d69fc96
3 changed files with 54 additions and 6 deletions

View File

@@ -140,8 +140,9 @@
<td colspan='<?php echo $columns;?>'>
<div class='table-actions clearfix'>
<?php
$canBatchEdit = common::hasPriv('task', 'batchEdit');
$canBatchClose = common::hasPriv('task', 'batchClose') and strtolower($browseType) != 'closedBy';
$canBatchEdit = common::hasPriv('task', 'batchEdit');
$canBatchClose = common::hasPriv('task', 'batchClose') and strtolower($browseType) != 'closedBy';
$canBatchAssignTo = common::hasPriv('task', 'batchAssignTo');
if(count($tasks))
{
echo "<div class='btn-group'>" . html::selectButton() . '</div>';
@@ -157,6 +158,16 @@
$misc = $canBatchClose ? "onclick=\"setFormAction('$actionLink','hiddenwin')\"" : "class='disabled'";
echo "<li>" . html::a('#', $lang->close, '', $misc) . "</li>";
echo "</ul></div>";
if($canBatchAssignTo)
{
$actionLink = $this->createLink('task', 'batchAssignTo', "projectID=$projectID");
echo "<div class='input-group w-150px'>";
echo html::select('assignedTo', $memberPairs, '', 'class="form-control chosen"');
echo "<span class='input-group-addon'>";
echo html::a("javascript:setFormAction(\"$actionLink\")", $lang->task->assign);
echo '</span></div>';
}
}
echo "<div class='text'>" . $summary . "</div>";
?>