+finish task#403
This commit is contained in:
@@ -23,23 +23,23 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->testcase->type;?></th>
|
||||
<td><?php echo html::select('type', $lang->testcase->typeList, 'feature', 'class=select-3');?></td>
|
||||
<td><?php echo html::select('type', $lang->testcase->typeList, $type, 'class=select-3');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->testcase->stage;?></th>
|
||||
<td><?php echo html::select('stage[]', $lang->testcase->stageList, '', "class='select-3' multiple='multiple'");?></td>
|
||||
<td><?php echo html::select('stage[]', $lang->testcase->stageList, $stage, "class='select-3' multiple='multiple'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->testcase->pri;?></th>
|
||||
<td><?php echo html::select('pri', $lang->testcase->priList, '', 'class=select-3');?></td>
|
||||
<td><?php echo html::select('pri', $lang->testcase->priList, $pri, 'class=select-3');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->testcase->lblStory;?></th>
|
||||
<td><span id='storyIdBox'><?php echo html::select('story', $stories, '', 'class=select-3');?></span></td>
|
||||
<td><span id='storyIdBox'><?php echo html::select('story', $stories, $storyID, 'class=select-3');?></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->testcase->title;?></th>
|
||||
<td><?php echo html::input('title', '', "class='text-1'");?></td>
|
||||
<td><?php echo html::input('title', $title, "class='text-1'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->testcase->steps;?></th>
|
||||
@@ -52,16 +52,17 @@
|
||||
<th class='w-100px'><?php echo $lang->actions;?></th>
|
||||
</tr>
|
||||
<?php
|
||||
for($i = 1; $i <= 3; $i ++)
|
||||
foreach($steps as $stepID => $step)
|
||||
{
|
||||
echo "<tr id='row$i' class='a-center'>";
|
||||
echo "<th class='stepID'>$i</th>";
|
||||
echo '<td class="w-p50">' . html::textarea('steps[]', '', "rows='3' class='w-p100'") . '</td>';
|
||||
echo '<td>' . html::textarea('expects[]', '', "rows='3' class='w-p100'") . '</td>';
|
||||
$stepID += 1;
|
||||
echo "<tr id='row$stepID' class='a-center'>";
|
||||
echo "<th class='stepID'>$stepID</th>";
|
||||
echo '<td class="w-p50">' . html::textarea('steps[]', $step->desc, "rows='3' class='w-p100'") . '</td>';
|
||||
echo '<td>' . html::textarea('expects[]', $step->expect, "rows='3' class='w-p100'") . '</td>';
|
||||
echo "<td class='a-center w-100px'><nobr>";
|
||||
echo "<input type='button' tabindex='-1' class='addbutton' onclick='preInsert($i)' value='{$lang->testcase->insertBefore}' /><br /> ";
|
||||
echo "<input type='button' tabindex='-1' class='addbutton' onclick='postInsert($i)' value='{$lang->testcase->insertAfter}' /><br /> ";
|
||||
echo "<input type='button' tabindex='-1' class='delbutton' onclick='deleteRow($i)' value='{$lang->testcase->deleteStep}' /><br /> ";
|
||||
echo "<input type='button' tabindex='-1' class='addbutton' onclick='preInsert($stepID)' value='{$lang->testcase->insertBefore}' /><br />";
|
||||
echo "<input type='button' tabindex='-1' class='addbutton' onclick='postInsert($stepID)' value='{$lang->testcase->insertAfter}' /><br />";
|
||||
echo "<input type='button' tabindex='-1' class='delbutton' onclick='deleteRow($stepID)' value='{$lang->testcase->deleteStep}' /><br />";
|
||||
echo "</nobr></td>";
|
||||
echo '</tr>';
|
||||
}
|
||||
@@ -71,7 +72,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->testcase->keywords;?></th>
|
||||
<td><?php echo html::input('keywords', '', "class='text-1'");?></td>
|
||||
<td><?php echo html::input('keywords', $keywords, "class='text-1'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->testcase->files;?></th>
|
||||
|
||||
Reference in New Issue
Block a user