* Finish task #8376.

This commit is contained in:
holan20180123
2020-11-18 11:34:41 +08:00
parent 726bbc775b
commit d1bb42ad3a
27 changed files with 70 additions and 95 deletions
+2 -2
View File
@@ -46,7 +46,7 @@ $status = $this->session->testTaskVersionStatus;
<div class='datepicker-wrapper datepicker-date'><?php echo html::input('date', $endTime, "class='form-control form-date' onchange='changeDate(\"$beginTime\", this.value, \"$condition\")'");?></div>
</div>
</div>
<?php if(!empty($this->config->CRProduct) or $product->status != 'closed'):?>
<?php if(common::canModify('product', $product)):?>
<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>
@@ -58,7 +58,7 @@ $status = $this->session->testTaskVersionStatus;
<div class="table-empty-tip">
<p>
<span class="text-muted"><?php echo $lang->testtask->noTesttask;?></span>
<?php if((!empty($this->config->CRProduct) or $product->status != 'closed') and common::hasPriv('testtask', 'create')):?>
<?php if(common::canModify('product', $product) and common::hasPriv('testtask', 'create')):?>
<?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>
+1 -1
View File
@@ -23,7 +23,7 @@
<?php echo html::a(inlink('browseUnits', "productID=$productID&browseType=$key&orderBy=$orderBy"), "<span class='text'>$label</span>", '', "id='{$key}Tab' class='btn btn-link'");?>
<?php endforeach;?>
</div>
<?php if(!empty($this->config->CRProduct) or $product->status != 'closed'):?>
<?php if(common::canModify('product', $product)):?>
<div class="btn-toolbar pull-right">
<?php common::printLink('testtask', 'importUnitResult', "product=$productID", "<i class='icon icon-import'></i> " . $lang->testtask->importUnitResult, '', "class='btn btn-primary'");?>
</div>