* ajusted views.

* changed css names.
This commit is contained in:
Catouse
2014-03-27 14:40:55 +08:00
parent 99c8a0554e
commit ad3a1c29b8
107 changed files with 917 additions and 768 deletions
+2 -2
View File
@@ -18,8 +18,8 @@ table .table-1{border:0px; margin:0px;}
table .table-1 td{border:0px;}
</style>
<?php $this->app->loadLang('testcase'); unset($this->lang->testcase->resultList['n/a']); ?>
<form method='post' target='hiddenwin'>
<table class='table-1 fixed'>
<form class='form-condensed' method='post' target='hiddenwin'>
<table class='table table-fixed table-form'>
<caption><?php echo $lang->testtask->common . $lang->colon . $lang->testtask->batchRun;?></caption>
<tr>
<th class='w-id'> <?php echo $lang->idAB;?></th>
+6 -6
View File
@@ -13,16 +13,16 @@
<?php include '../../common/view/header.html.php';?>
<?php include '../../common/view/datepicker.html.php';?>
<?php include '../../common/view/kindeditor.html.php';?>
<form method='post' target='hiddenwin'>
<table class='table-1'>
<form class='form-condensed' method='post' target='hiddenwin'>
<table class='table table-form'>
<caption><?php echo $testtask->name;?></caption>
<tr>
<td class='rowhead'><?php echo $lang->testtask->report;?></td>
<td><?php echo html::textarea('report', '', "rows='6' class='area-1'");?></td>
<td><?php echo $lang->testtask->report;?></td>
<td><?php echo html::textarea('report', '', "rows='6' class='form-control'");?></td>
</tr>
<tr>
<td class='rowhead'><?php echo $lang->comment;?></td>
<td><?php echo html::textarea('comment', '', "rows='6' class='area-1'");?></td>
<td><?php echo $lang->comment;?></td>
<td><?php echo html::textarea('comment', '', "rows='6' class='form-control'");?></td>
</tr>
<tr>
<td colspan='2' class='text-center'><?php echo html::submitButton() . html::linkButton($lang->goback, $this->session->taskList); ?></td>
+15 -15
View File
@@ -13,12 +13,12 @@
<?php include '../../common/view/header.html.php';?>
<?php include '../../common/view/datepicker.html.php';?>
<?php include '../../common/view/kindeditor.html.php';?>
<form method='post' target='hiddenwin' id='dataform'>
<table class='table-1'>
<form class='form-condensed' method='post' target='hiddenwin' id='dataform'>
<table class='table table-form'>
<caption><?php echo $lang->testtask->create;?></caption>
<?php if(isset($projectID)):?>
<tr>
<th class='rowhead'><?php echo $lang->testtask->product;?></th>
<th><?php echo $lang->testtask->product;?></th>
<td><?php echo html::select('product', $products, '', "class='form-control'");?></td>
</tr>
<?php else:?>
@@ -28,40 +28,40 @@
</tr>
<?php endif;?>
<tr>
<th class='rowhead'><?php echo $lang->testtask->project;?></th>
<th><?php echo $lang->testtask->project;?></th>
<td><?php echo html::select('project', $projects, '', 'class=select-3 onchange=loadProjectRelated(this.value)');?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->testtask->build;?></th>
<th><?php echo $lang->testtask->build;?></th>
<td><span id='buildBox'><?php echo html::select('build', $builds, '', "class='form-control'");?></span></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->testtask->owner;?></th>
<th><?php echo $lang->testtask->owner;?></th>
<td><?php echo html::select('owner', $users, '', "class='form-control chosen'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->testtask->pri;?></th>
<th><?php echo $lang->testtask->pri;?></th>
<td><?php echo html::select('pri', $lang->testtask->priList, 0, "class='form-control'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->testtask->begin;?></th>
<td><?php echo html::input('begin', '', "class='text-3 date'");?></td>
<th><?php echo $lang->testtask->begin;?></th>
<td><?php echo html::input('begin', '', "class='form-control form-date'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->testtask->end;?></th>
<td><?php echo html::input('end', '', "class='text-3 date'");?></td>
<th><?php echo $lang->testtask->end;?></th>
<td><?php echo html::input('end', '', "class='form-control form-date'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->testtask->status;?></th>
<th><?php echo $lang->testtask->status;?></th>
<td><?php echo html::select('status', $lang->testtask->statusList, '', "class='form-control'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->testtask->name;?></th>
<th><?php echo $lang->testtask->name;?></th>
<td><?php echo html::input('name', '', "class='form-control'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->testtask->desc;?></th>
<td><?php echo html::textarea('desc', '', "rows=10 class='area-1'");?></td>
<th><?php echo $lang->testtask->desc;?></th>
<td><?php echo html::textarea('desc', '', "rows=10 class='form-control'");?></td>
</tr>
<tr>
<td colspan='2' class='text-center'><?php echo html::submitButton() . html::backButton();?> </td>
+16 -16
View File
@@ -13,48 +13,48 @@
<?php include '../../common/view/header.html.php';?>
<?php include '../../common/view/datepicker.html.php';?>
<?php include '../../common/view/kindeditor.html.php';?>
<form method='post' target='hiddenwin' id='dataform'>
<table class='table-1'>
<form class='form-condensed' method='post' target='hiddenwin' id='dataform'>
<table class='table table-form'>
<caption><?php echo $lang->testtask->edit;?></caption>
<tr>
<th class='rowhead'><?php echo $lang->testtask->project;?></th>
<th><?php echo $lang->testtask->project;?></th>
<td><?php echo html::select('project', $projects, $task->project, "class='form-control'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->testtask->build;?></th>
<th><?php echo $lang->testtask->build;?></th>
<td><?php echo html::select('build', $builds, $task->build, "class='form-control'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->testtask->owner;?></th>
<th><?php echo $lang->testtask->owner;?></th>
<td><?php echo html::select('owner', $users, $task->owner, "class='form-control chosen'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->testtask->pri;?></th>
<th><?php echo $lang->testtask->pri;?></th>
<td><?php echo html::select('pri', $lang->testtask->priList, $task->pri, "class='form-control'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->testtask->begin;?></th>
<td><?php echo html::input('begin', $task->begin, "class='text-3 date'");?></td>
<th><?php echo $lang->testtask->begin;?></th>
<td><?php echo html::input('begin', $task->begin, "class='form-control form-date'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->testtask->end;?></th>
<td><?php echo html::input('end', $task->end, "class='text-3 date'");?></td>
<th><?php echo $lang->testtask->end;?></th>
<td><?php echo html::input('end', $task->end, "class='form-control form-date'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->testtask->status;?></th>
<th><?php echo $lang->testtask->status;?></th>
<td><?php echo html::select('status', $lang->testtask->statusList, $task->status, "class='form-control'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->testtask->name;?></th>
<th><?php echo $lang->testtask->name;?></th>
<td><?php echo html::input('name', $task->name, "class='form-control'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->testtask->desc;?></th>
<td><?php echo html::textarea('desc', $task->desc, "rows=10 class='area-1'");?></td>
<th><?php echo $lang->testtask->desc;?></th>
<td><?php echo html::textarea('desc', $task->desc, "rows=10 class='form-control'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->testtask->report;?></th>
<td><?php echo html::textarea('report', $task->report, "rows=10 class='area-1'");?></td>
<th><?php echo $lang->testtask->report;?></th>
<td><?php echo html::textarea('report', $task->report, "rows=10 class='form-control'");?></td>
</tr>
<tr>
<td colspan='2' class='text-center'><?php echo html::submitButton() . html::backButton();?> </td>
+1 -1
View File
@@ -31,7 +31,7 @@
<td><?php echo nl2br($step->desc);?></td>
<td><?php echo nl2br($step->expect);?></td>
<td class='text-center'><?php echo html::select("steps[$step->id]", $lang->testcase->resultList, $defaultResult);?></td>
<td><?php echo html::textarea("reals[$step->id]", '', "rows=2 class='area-1'");?></td>
<td><?php echo html::textarea("reals[$step->id]", '', "rows=2 class='form-control'");?></td>
</tr>
<?php endforeach;?>
<tr class='text-center'>
+4 -4
View File
@@ -13,12 +13,12 @@
<?php include '../../common/view/header.html.php';?>
<?php include '../../common/view/kindeditor.html.php';?>
<?php include '../../common/view/datepicker.html.php';?>
<form method='post' target='hiddenwin'>
<table class='table-1'>
<form class='form-condensed' method='post' target='hiddenwin'>
<table class='table table-form'>
<caption><?php echo $testtask->name;?></caption>
<tr>
<td class='rowhead'><?php echo $lang->comment;?></td>
<td><?php echo html::textarea('comment', '', "rows='6' class='area-1'");?></td>
<td><?php echo $lang->comment;?></td>
<td><?php echo html::textarea('comment', '', "rows='6' class='form-control'");?></td>
</tr>
<tr>
<td colspan='2' class='text-center'><?php echo html::submitButton() . html::linkButton($lang->goback, $this->session->taskList); ?></td>
+8 -8
View File
@@ -60,35 +60,35 @@
<legend><?php echo $lang->testtask->legendBasicInfo;?></legend>
<table class='table-1 a-left fixed'>
<tr>
<th class='rowhead'><?php echo $lang->testtask->project;?></th>
<th><?php echo $lang->testtask->project;?></th>
<td><?php echo html::a($this->createLink('project', 'story', "projectID=$task->project"), $task->projectName);?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->testtask->build;?></th>
<th><?php echo $lang->testtask->build;?></th>
<td><?php $task->build == 'trunk' ? print('Trunk') : print(html::a($this->createLink('build', 'view', "buildID=$task->build"), $task->buildName));?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->testtask->owner;?></th>
<th><?php echo $lang->testtask->owner;?></th>
<td><?php echo $users[$task->owner];?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->testtask->pri;?></th>
<th><?php echo $lang->testtask->pri;?></th>
<td><?php echo $task->pri;?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->testtask->begin;?></th>
<th><?php echo $lang->testtask->begin;?></th>
<td><?php echo $task->begin;?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->testtask->end;?></th>
<th><?php echo $lang->testtask->end;?></th>
<td><?php echo $task->end;?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->testtask->status;?></th>
<th><?php echo $lang->testtask->status;?></th>
<td><?php echo $lang->testtask->statusList[$task->status];?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->testtask->report;?></th>
<th><?php echo $lang->testtask->report;?></th>
<td class='content'><?php echo $task->report;?></td>
</tr>
</table>