100 lines
4.3 KiB
PHP
100 lines
4.3 KiB
PHP
<?php
|
|
/**
|
|
* The create view of testtask module of ZenTaoPMS.
|
|
*
|
|
* @copyright Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
|
|
* @license ZPL (http://zpl.pub/page/zplv12.html)
|
|
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
|
|
* @package testtask
|
|
* @version $Id: create.html.php 4728 2013-05-03 06:14:34Z chencongzhi520@gmail.com $
|
|
* @link http://www.zentao.net
|
|
*/
|
|
?>
|
|
<?php include '../../common/view/header.html.php';?>
|
|
<?php include '../../common/view/datepicker.html.php';?>
|
|
<?php include '../../common/view/kindeditor.html.php';?>
|
|
<?php js::import($jsRoot . 'misc/date.js');?>
|
|
<div id='mainContent' class='main-content'>
|
|
<div class='center-block mw-1400px'>
|
|
<div class='main-header'>
|
|
<h2><?php echo $lang->testtask->create;?></h2>
|
|
</div>
|
|
<form method='post' target='hiddenwin' id='dataform'>
|
|
<table class='table table-form'>
|
|
<?php if(isset($projectID)):?>
|
|
<tr>
|
|
<th class='w-80px'><?php echo $lang->testtask->product;?></th>
|
|
<td class='w-p35-f'><?php echo html::select('product', $products, $productID, "class='form-control chosen'");?></td><td></td>
|
|
</tr>
|
|
<?php else:?>
|
|
<tr class='hide'>
|
|
<th class='w-80px'><?php echo $lang->testtask->product;?></th>
|
|
<td class='w-p35-f'><?php echo html::input('product', $productID, "class='form-control'");?></td><td></td>
|
|
</tr>
|
|
<?php endif;?>
|
|
<?php if($config->global->flow != 'onlyTest'):?>
|
|
<tr>
|
|
<th class='w-80px'><?php echo $lang->testtask->project;?></th>
|
|
<td class='w-p35-f'><?php echo html::select('project', $projects, '', "class='form-control chosen' onchange='loadProjectRelated(this.value)'");?></td><td></td>
|
|
</tr>
|
|
<?php endif;?>
|
|
<tr>
|
|
<th class='w-80px'><?php echo $lang->testtask->build;?></th>
|
|
<td class='w-p35-f'><span id='buildBox'><?php echo html::select('build', $builds, $build, "class='form-control chosen'");?></span></td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?php echo $lang->testtask->owner;?></th>
|
|
<td>
|
|
<div id='ownerAndPriBox' class='input-group'>
|
|
<?php echo html::select('owner', $users, '', "class='form-control chosen'");?>
|
|
<span class='input-group-addon fix-border'><?php echo $lang->testtask->pri;?></span>
|
|
<?php echo html::select('pri', $lang->testtask->priList, 0, "class='form-control chosen'");?>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th><?php echo $lang->testtask->begin;?></th>
|
|
<td>
|
|
<div class='input-group'>
|
|
<?php echo html::input('begin', '', "class='form-control form-date' onchange='suitEndDate()'");?>
|
|
<span class='input-group-addon fix-border'><?php echo $lang->testtask->end;?></span>
|
|
<?php echo html::input('end', '', "class='form-control form-date'");?>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th><?php echo $lang->testtask->status;?></th>
|
|
<td><?php echo html::select('status', $lang->testtask->statusList, '', "class='form-control chosen'");?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?php echo $lang->testtask->name;?></th>
|
|
<td colspan='2'><?php echo html::input('name', '', "class='form-control' autocomplete='off'");?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?php echo $lang->testtask->desc;?></th>
|
|
<td colspan='2'><?php echo html::textarea('desc', '', "rows=10 class='form-control'");?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?php echo $lang->testtask->mailto;?></th>
|
|
<td colspan='2'>
|
|
<div id='mailtoGroup' class='input-group'>
|
|
<?php
|
|
echo html::select('mailto[]', $users, '', "multiple class='form-control'");
|
|
echo $this->fetch('my', 'buildContactLists');
|
|
?>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class='text-center form-actions' colspan='3'>
|
|
<?php echo html::submitButton('', '', 'btn btn-wide btn-primary');?>
|
|
<?php echo html::backButton('', '', 'btn btn-wide');?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<?php include '../../common/view/footer.html.php';?>
|