+ add copy link to the list page.

This commit is contained in:
wangchunsheng
2011-10-27 08:39:40 +00:00
parent 6e94f152c1
commit 8227b6220e
4 changed files with 15 additions and 14 deletions
+1
View File
@@ -0,0 +1 @@
.w-240px{width:240px}
+10 -9
View File
@@ -59,12 +59,12 @@ var moduleID = '<?php echo $moduleID;?>';
<th><?php common::printOrderLink('story', $orderBy, $vars, $lang->testcase->story);?></th>
<th class='w-50px'><?php echo $lang->actions;?></th>
<?php else:?>
<th class='w-type'> <?php common::printOrderLink('type', $orderBy, $vars, $lang->typeAB);?></th>
<th class='w-user'> <?php common::printOrderLink('openedBy', $orderBy, $vars, $lang->openedByAB);?></th>
<th class='w-user'><?php common::printOrderLink('lastRun', $orderBy, $vars, $lang->testtask->lastRun);?></th>
<th class='w-80px'><?php common::printOrderLink('lastResult',$orderBy, $vars, $lang->testtask->lastResult);?></th>
<th class='w-status'><?php common::printOrderLink('status', $orderBy, $vars, $lang->statusAB);?></th>
<th class='w-200px {sorter:false}'><?php echo $lang->actions;?></th>
<th class='w-type'> <?php common::printOrderLink('type', $orderBy, $vars, $lang->typeAB);?></th>
<th class='w-user'> <?php common::printOrderLink('openedBy', $orderBy, $vars, $lang->openedByAB);?></th>
<th class='w-date'> <?php common::printOrderLink('lastRun', $orderBy, $vars, $lang->testtask->lastRun);?></th>
<th class='w-80px'> <?php common::printOrderLink('lastResult',$orderBy, $vars, $lang->testtask->lastResult);?></th>
<th class='w-status'><?php common::printOrderLink('status', $orderBy, $vars, $lang->statusAB);?></th>
<th class='w-240px {sorter:false}'><?php echo $lang->actions;?></th>
<?php endif;?>
</tr>
<?php foreach($cases as $case):?>
@@ -82,10 +82,11 @@ var moduleID = '<?php echo $moduleID;?>';
<td><?php if(!helper::isZeroDate($case->lastRun)) echo date(DT_MONTHTIME1, strtotime($case->lastRun));?></td>
<td><?php if($case->lastResult) echo $lang->testcase->resultList[$case->lastResult];?></td>
<td><?php echo $lang->testcase->statusList[$case->status];?></td>
<td>
<td class='a-left'>
<?php
common::printLink('testcase', 'edit', "caseID=$case->id", $lang->testcase->buttonEdit);
common::printLink('testcase', 'delete', "caseID=$case->id", $lang->delete, 'hiddenwin');
common::printLink('testcase', 'create', "productID=$case->product&moduleID=$case->module&testcaseID=$case->id", $lang->copy);
common::printLink('testcase', 'edit', "caseID=$case->id", $lang->testcase->buttonEdit);
common::printLink('testcase', 'delete', "caseID=$case->id", $lang->delete, 'hiddenwin');
common::printLink('testtask', 'runCase', "runID=0&extras=caseID=$case->id", $this->app->loadLang('testtask')->testtask->runCase, '', 'class="runcase"');
common::printLink('testtask', 'results', "runID=0&extras=caseID=$case->id,version=$case->version", $lang->testtask->results, '', 'class="results"');
if($case->lastResult == 'fail') common::printLink('bug', 'create', "product=$case->product&extra=caseID=$case->id,version=$case->version,runID=", $lang->testtask->createBug);
+1 -1
View File
@@ -21,7 +21,7 @@ $lang->testtask->unlinkCase = "Remove";
$lang->testtask->batchAssign = "Batch Assign";
$lang->testtask->runCase = "Run";
$lang->testtask->results = "Result";
$lang->testtask->createBug = "Add bug";
$lang->testtask->createBug = "Create bug";
$lang->testtask->assign = 'Assign';
$lang->testtask->cases = 'Cases';
+3 -4
View File
@@ -14,10 +14,9 @@
<form method='post'>
<table class='table-1'>
<caption class='caption-tl'>CASE#<?php echo $run->case->id. $lang->colon . $run->case->title;?></caption>
<fieldset>
<legend><?php echo $lang->testcase->precondition;?></legend>
<?php echo $run->case->precondition;?>
</fieldset>
<tr>
<td colspan='5'><h5><?php echo $lang->testcase->precondition;?></h5><?php echo $run->case->precondition;?></td>
</tr>
<tr class='colhead'>
<th class='w-30px'><?php echo $lang->testcase->stepID;?></th>
<th class='w-p40'><?php echo $lang->testcase->stepDesc;?></th>