* ajusted views of module 'testcase' & 'testtask'.

This commit is contained in:
Catouse
2014-04-01 11:34:36 +08:00
parent fece501c1c
commit 9e1acb9c15
18 changed files with 397 additions and 312 deletions
+25 -13
View File
@@ -14,25 +14,37 @@
<?php include '../../common/view/chosen.html.php';?>
<?php js::set('testcaseBatchCreateNum', $config->testcase->batchCreate);?>
<?php js::set('productID', $productID);?>
<form method='post' enctype='multipart/form-data' target='hiddenwin'>
<table align='center' class='table-1 fixed'>
<caption><?php echo $lang->testcase->batchCreate; if($story) echo "{$lang->colon}STORY#{$story->id} $story->title";?></caption>
<tr>
<th class='w-20px'><?php echo $lang->idAB;?></th>
<th class='w-300px'><?php echo $lang->testcase->module;?></th>
<th class='w-180px'><?php echo $lang->testcase->type;?></th>
<?php if(!$story) echo "<th>{$lang->testcase->story}</th>";?>
<th class='red'><?php echo $lang->testcase->title;?></th>
</tr>
<div id='titlebar'>
<div class='heading'>
<span class='prefix'><?php echo html::icon($lang->icons['testcase']);?></span>
<strong><small class='text-muted'><?php echo html::icon($lang->icons['batchCreate']);?></small> <?php echo $lang->testcase->batchCreate;?></strong>
<?php if($story):?>
<small><?php echo html::icon($lang->icons['story']) . '#' . $story->id . ' ' . $story->title ?></small>
<?php endif;?>
</div>
</div>
<form class='form-condensed' method='post' enctype='multipart/form-data' target='hiddenwin'>
<table align='center' class='table table-form'>
<thead>
<tr>
<th class='w-20px'><?php echo $lang->idAB;?></th>
<th class='w-300px'><?php echo $lang->testcase->module;?></th>
<th class='w-180px'><?php echo $lang->testcase->type;?></th>
<?php if(!$story) echo "<th>{$lang->testcase->story}</th>";?>
<th class='required'><?php echo $lang->testcase->title;?></th>
</tr>
</thead>
<?php for($i = 0; $i < $config->testcase->batchCreate; $i++):?>
<?php $moduleOptionMenu['same'] = $lang->testcase->same; if($i != 0) $currentModuleID = 'same';?>
<?php $lang->testcase->typeList['same'] = $lang->testcase->same; $type = ($i == 0 ? 'feature' : 'same');?>
<?php $pri = 3;?>
<tr class='text-center'>
<td><?php echo $i+1;?></td>
<td><?php echo html::select("module[$i]", $moduleOptionMenu, $currentModuleID, "class=select-1");?></td>
<td><?php echo html::select("type[$i]", $lang->testcase->typeList, $type, "class=select-1");?></td>
<?php if(!$story):?><td class='text-left'style='overflow:visible'><?php echo html::select("story[$i]", '', '', 'class="select-1 storySelect"');?></td><?php endif;?>
<td><?php echo html::select("module[$i]", $moduleOptionMenu, $currentModuleID, "class=form-control");?></td>
<td><?php echo html::select("type[$i]", $lang->testcase->typeList, $type, "class=form-control");?></td>
<?php if(!$story):?><td class='text-left' style='overflow:visible'><?php echo html::select("story[$i]", '', '', 'class="form-control storySelect"');?></td><?php endif;?>
<td><?php echo html::input("title[$i]", '', "class='form-control'");?></td>
</tr>
<?php endfor;?>