* Finish task #4488

This commit is contained in:
liugang
2018-06-21 17:39:31 +08:00
parent b9fb4fae18
commit a054614d58
87 changed files with 556 additions and 246 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ $lang->testtask->showFail = 'Failed <span class="text-danger">%s</span> tim
$lang->testtask->confirmDelete = 'Do you want to delete this test build?';
$lang->testtask->confirmUnlinkCase = 'Do you want to unlink this Case?';
$lang->testtask->noticeNoOther = 'There are no other test task for this product';
$lang->testtask->noTesttask = 'No test task. You could';
$lang->testtask->noTesttask = 'No test tasks. ';
$lang->testtask->assignedToMe = 'My';
$lang->testtask->allCases = 'AllCases';
+1 -1
View File
@@ -104,7 +104,7 @@ $lang->testtask->showFail = '失败<span class="text-danger">%s</span>次';
$lang->testtask->confirmDelete = '您确认要删除该版本吗?';
$lang->testtask->confirmUnlinkCase = '您确认要移除该用例吗?';
$lang->testtask->noticeNoOther = '该产品还没有其他测试版本';
$lang->testtask->noTesttask = '暂时没有测试版本,您现在可以';
$lang->testtask->noTesttask = '暂时没有测试版本';
$lang->testtask->assignedToMe = '指派给我';
$lang->testtask->allCases = '所有用例';
+1 -1
View File
@@ -104,7 +104,7 @@ $lang->testtask->showFail = '失敗<span class="text-danger">%s</span>次';
$lang->testtask->confirmDelete = '您確認要刪除該版本嗎?';
$lang->testtask->confirmUnlinkCase = '您確認要移除該用例嗎?';
$lang->testtask->noticeNoOther = '該產品還沒有其他測試版本';
$lang->testtask->noTesttask = '暫時沒有測試版本,您現在可以';
$lang->testtask->noTesttask = '暫時沒有測試版本';
$lang->testtask->assignedToMe = '指派給我';
$lang->testtask->allCases = '所有用例';
+11 -7
View File
@@ -48,12 +48,18 @@ $status = $this->session->testTaskVersionStatus;
<div class="btn-toolbar pull-right"><?php common::printLink('testtask', 'create', "product=$productID", "<i class='icon icon-plus'></i> " . $lang->testtask->create, '', "class='btn btn-primary'");?></div>
</div>
<?php endif;?>
<?php if($scope == 'local' && $status == 'totalStatus' && empty($tasks)):?>
<div class="table-empty-tip">
<p><span class="text-muted"><?php echo $lang->testtask->noTesttask;?></span> <?php common::printLink('testtask', 'create', "productID={$productID}", "<i class='icon icon-plus'></i> " . $lang->testtask->create, '', "class='btn btn-info'");?></p>
</div>
<?php else:?>
<div id='mainContent' class='main-table'>
<?php if(empty($tasks)):?>
<div class="table-empty-tip">
<p>
<span class="text-muted"><?php echo $lang->testtask->noTesttask;?></span>
<?php if(common::hasPriv('testtask', 'create')):?>
<span class="text-muted"><?php echo $lang->youCould;?></span>
<?php echo html::a($this->createLink('testtask', 'create', "product=$productID"), "<i class='icon icon-plus'></i> " . $lang->testtask->create, '', "class='btn btn-info'");?>
<?php endif;?>
</p>
</div>
<?php else:?>
<table class='table has-sort-head' id='taskList'>
<thead>
<?php $vars = "productID=$productID&branch=$branch&type=$scope,$status&orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}"; ?>
@@ -109,10 +115,8 @@ $status = $this->session->testTaskVersionStatus;
<?php endforeach;?>
</tbody>
</table>
<?php if($tasks):?>
<div class='table-footer'><?php $pager->show('right', 'pagerjs');?></div>
<?php endif;?>
</div>
<?php endif;?>
<script>$(function(){$('#<?php echo $status?>Tab').addClass('btn-active-text').append("<span class='label label-light label-badge'><?php echo $pager->recTotal;?></span>")})</script>
<?php include '../../common/view/footer.html.php';?>