* code for task#1528.
This commit is contained in:
@@ -21,13 +21,13 @@
|
||||
</tr>
|
||||
<?php
|
||||
$canBatchEdit = common::hasPriv('testcase', 'batchEdit');
|
||||
$canBatchClose = common::hasPriv('testtask', 'batchRun');
|
||||
$canBatchRun = common::hasPriv('testtask', 'batchRun');
|
||||
?>
|
||||
<?php foreach($cases as $case):?>
|
||||
<tr class='a-center'>
|
||||
<?php $viewLink = inlink('view', "caseID=$case->id");?>
|
||||
<td>
|
||||
<?php if($canBatchEdit or $canBatchClose):?>
|
||||
<?php if($canBatchEdit or $canBatchRun):?>
|
||||
<input type='checkbox' name='caseIDList[]' value='<?php echo $case->id;?>'/>
|
||||
<?php endif;?>
|
||||
<?php echo html::a($viewLink, sprintf('%03d', $case->id));?>
|
||||
@@ -65,9 +65,9 @@
|
||||
<?php if($cases):?>
|
||||
<div class='f-left'>
|
||||
<?php
|
||||
if($canBatchEdit or $canBatchClose) echo html::selectAll() . html::selectReverse();
|
||||
if($canBatchEdit or $canBatchRun) echo html::selectAll() . html::selectReverse();
|
||||
if($canBatchEdit) echo html::submitButton($lang->edit, "onclick='changeAction(\"" . inLink('batchEdit', "productID=$productID") . "\")'");
|
||||
if($canBatchClose) echo html::submitButton($lang->testtask->runCase, "onclick='changeAction(\"" . $this->createLink('testtask', 'batchRun', "productID=$productID&orderBy=$orderBy") . "\")'");
|
||||
if($canBatchRun) echo html::submitButton($lang->testtask->runCase, "onclick='changeAction(\"" . $this->createLink('testtask', 'batchRun', "productID=$productID&orderBy=$orderBy") . "\")'");
|
||||
?>
|
||||
</div>
|
||||
<?php endif?>
|
||||
|
||||
Reference in New Issue
Block a user