* Fix issue #714.
This commit is contained in:
@@ -43,14 +43,12 @@
|
||||
<?php
|
||||
$vars = "mode=$mode&type=$type¶m=$param&orderBy=%s&recTotal=$recTotal&recPerPage=$recPerPage&pageID=$pageID";
|
||||
$this->app->loadLang('testtask');
|
||||
$canBatchRun = (common::hasPriv('testtask', 'batchRun') and $type == 'assigntome');
|
||||
$canBatchEdit = (common::hasPriv('testcase', 'batchEdit') and $type == 'assigntome');
|
||||
$canBatchAction = ($canBatchRun or $canBatchEdit);
|
||||
$canBatchEdit = (common::hasPriv('testcase', 'batchEdit') and $type == 'assigntome');
|
||||
?>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="<?php echo $canBatchAction ? 'w-100px' : 'w-50px';?>">
|
||||
<?php if($canBatchAction):?>
|
||||
<th class="<?php echo $canBatchEdit ? 'w-100px' : 'w-50px';?>">
|
||||
<?php if($canBatchEdit):?>
|
||||
<div class="checkbox-primary check-all" title="<?php echo $lang->selectAll?>">
|
||||
<label></label>
|
||||
</div>
|
||||
@@ -80,7 +78,7 @@
|
||||
?>
|
||||
<tr>
|
||||
<td class="c-id">
|
||||
<?php if($canBatchAction):?>
|
||||
<?php if($canBatchEdit):?>
|
||||
<div class="checkbox-primary">
|
||||
<input type='checkbox' name='caseIDList[]' value='<?php echo $case->id;?>' <?php if(!$canBeChanged) echo 'disabled';?> />
|
||||
<label></label>
|
||||
@@ -120,7 +118,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="table-footer">
|
||||
<?php if($canBatchAction):?>
|
||||
<?php if($canBatchEdit):?>
|
||||
<div class="checkbox-primary check-all"><label><?php echo $lang->selectAll?></label></div>
|
||||
<?php endif;?>
|
||||
<div class="table-actions btn-toolbar">
|
||||
@@ -131,12 +129,6 @@
|
||||
$misc = "data-form-action='$actionLink'";
|
||||
echo html::commonButton($lang->edit, $misc);
|
||||
}
|
||||
if($canBatchRun)
|
||||
{
|
||||
$actionLink = $this->createLink('testtask', 'batchRun', 'productID=0');
|
||||
$misc = "data-form-action='$actionLink'";
|
||||
echo html::commonButton($lang->testtask->runCase, $misc);
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php $pager->show('right', 'pagerjs');?>
|
||||
|
||||
@@ -1377,6 +1377,7 @@ class testtask extends control
|
||||
$this->view->title = $this->lang->testtask->batchRun;
|
||||
$this->view->position[] = $this->lang->testtask->common;
|
||||
$this->view->position[] = $this->lang->testtask->batchRun;
|
||||
$this->view->from = $from;
|
||||
$this->display();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
$(function(){
|
||||
if(from == 'testcase')
|
||||
{
|
||||
$("#navbar li[data-id='testtask']").toggleClass('active');
|
||||
$("#navbar li[data-id='testcase']").toggleClass('active');
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('keyup', 'form input:text', function()
|
||||
{
|
||||
var preSelect = $(this).parent().prev().find('select');
|
||||
|
||||
@@ -11,10 +11,11 @@
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php js::set('from', $from);?>
|
||||
<?php $this->app->loadLang('testcase'); unset($this->lang->testcase->resultList['n/a']); ?>
|
||||
<div id='mainContent' class='main-content'>
|
||||
<div class='main-header'>
|
||||
<h2><?php echo $lang->testtask->common . $lang->colon . $lang->testtask->batchRun;?></h2>
|
||||
<h2><?php echo ($from == 'testtask' ? ($lang->testtask->common . $lang->colon) : ''). $lang->testtask->batchRun;?></h2>
|
||||
</div>
|
||||
<form class='main-form' method='post' target='hiddenwin'>
|
||||
<table class='table table-fixed table-form table-bordered'>
|
||||
|
||||
Reference in New Issue
Block a user