+ add owner to test task.
This commit is contained in:
@@ -100,6 +100,7 @@ class testtask extends control
|
||||
|
||||
$this->view->projects = $this->product->getProjectPairs($productID);
|
||||
$this->view->builds = $this->loadModel('build')->getProductBuildPairs($productID);
|
||||
$this->view->users = $this->loadModel('user')->getPairs('noclosed|nodeleted');
|
||||
|
||||
$this->display();
|
||||
}
|
||||
@@ -125,7 +126,7 @@ class testtask extends control
|
||||
|
||||
$this->view->productID = $productID;
|
||||
$this->view->task = $task;
|
||||
$this->view->users = $this->loadModel('user')->getPairs('noclosed');
|
||||
$this->view->users = $this->loadModel('user')->getPairs('noclosed|noletter');
|
||||
$this->view->actions = $this->loadModel('action')->getList('testtask', $taskID);
|
||||
|
||||
$this->display();
|
||||
@@ -218,6 +219,7 @@ class testtask extends control
|
||||
$this->view->task = $task;
|
||||
$this->view->projects = $this->product->getProjectPairs($productID);
|
||||
$this->view->builds = $this->loadModel('build')->getProductBuildPairs($productID);
|
||||
$this->view->users = $this->loadModel('user')->getPairs();
|
||||
|
||||
$this->display();
|
||||
}
|
||||
|
||||
@@ -30,6 +30,7 @@ $lang->testtask->id = 'ID';
|
||||
$lang->testtask->product = 'Product';
|
||||
$lang->testtask->project = 'Project';
|
||||
$lang->testtask->build = 'Build';
|
||||
$lang->testtask->owner = 'Owner';
|
||||
$lang->testtask->name = 'Name';
|
||||
$lang->testtask->begin = 'Begin';
|
||||
$lang->testtask->end = 'End';
|
||||
|
||||
@@ -30,6 +30,7 @@ $lang->testtask->id = '任务编号';
|
||||
$lang->testtask->product = '所属产品';
|
||||
$lang->testtask->project = '所属项目';
|
||||
$lang->testtask->build = 'Build';
|
||||
$lang->testtask->owner = '负责人';
|
||||
$lang->testtask->name = '任务名称';
|
||||
$lang->testtask->begin = '开始日期';
|
||||
$lang->testtask->end = '结束日期';
|
||||
|
||||
@@ -13,6 +13,11 @@
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/datepicker.html.php';?>
|
||||
<?php include '../../common/view/kindeditor.html.php';?>
|
||||
<script language='Javascript'>
|
||||
function loadBuilds()
|
||||
{
|
||||
}
|
||||
</script>
|
||||
<div class='yui-d0'>
|
||||
<form method='post' target='hiddenwin'>
|
||||
<table class='table-1'>
|
||||
@@ -25,6 +30,10 @@
|
||||
<th class='rowhead'><?php echo $lang->testtask->build;?></th>
|
||||
<td><?php echo html::select('build', $builds, '', 'class=select-3');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->testtask->owner;?></th>
|
||||
<td><?php echo html::select('owner', $users, '', 'class=select-3');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->testtask->begin;?></th>
|
||||
<td><?php echo html::input('begin', '', "class='text-3 date'");?>
|
||||
|
||||
@@ -25,6 +25,10 @@
|
||||
<th class='rowhead'><?php echo $lang->testtask->build;?></th>
|
||||
<td><?php echo html::select('build', $builds, $task->build, 'class=select-3');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->testtask->owner;?></th>
|
||||
<td><?php echo html::select('owner', $users, $task->owner, 'class=select-3');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->testtask->begin;?></th>
|
||||
<td><?php echo html::input('begin', $task->begin, "class='text-3 date'");?>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<div class='yui-d0'>
|
||||
<h1>CASE#<?php echo $run->case->id. $lang->colon . $run->case->title;?></h1>
|
||||
<?php foreach($results as $result):?>
|
||||
<table class='table-1 bd-1px'>
|
||||
<table class='table-1'>
|
||||
<caption>RESULT#<?php echo $result->id . ' ' . $result->date . " <span class='$result->caseResult'>" . $lang->testcase->resultList[$result->caseResult] . '</span>';?></caption>
|
||||
<tr>
|
||||
<th class='w-30px'><?php echo $lang->testcase->stepID;?></th>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<style>body{background:white}</style>
|
||||
<div class='yui-d0'>
|
||||
<form method='post'>
|
||||
<table class='table-1 bd-1px'>
|
||||
<table class='table-1'>
|
||||
<caption class='caption-tl'>CASE#<?php echo $run->case->id. $lang->colon . $run->case->title;?></caption>
|
||||
<tr class='colhead'>
|
||||
<th class='w-30px'><?php echo $lang->testcase->stepID;?></th>
|
||||
|
||||
@@ -27,6 +27,10 @@
|
||||
<th class='rowhead'><?php echo $lang->testtask->build;?></th>
|
||||
<td><?php $task->buildName ? print($task->buildName) : print($task->build);?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->testtask->owner;?></th>
|
||||
<td><?php echo $users[$task->owner];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->testtask->begin;?></th>
|
||||
<td><?php echo $task->begin;?></td>
|
||||
|
||||
Reference in New Issue
Block a user