diff --git a/module/testcase/control.php b/module/testcase/control.php index 05473633e3..e3748ca7dd 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -866,6 +866,10 @@ class testcase extends control $fields['stage'] = $this->lang->testcase->stage; $fields['precondition'] = $this->lang->testcase->precondition; + $fields[''] = ''; + $fields['typeValue'] = $this->lang->testcase->lblTypeValue; + $fields['stageValue'] = $this->lang->testcase->lblStageValue; + $modules = $this->loadModel('tree')->getOptionMenu($productID, 'case'); $rows = array(); foreach($modules as $moduleID => $module) @@ -874,6 +878,12 @@ class testcase extends control $row->module = $module . "(#$moduleID)"; $row->stepDesc = "1. \n2. \n3."; $row->stepExpect = "1. \n2. \n3."; + + if(empty($rows)) + { + $row->typeValue = join("\n", $this->lang->testcase->typeList); + $row->stageValue = join("\n", $this->lang->testcase->stageList); + } $rows[] = $row; } diff --git a/module/testcase/css/common.css b/module/testcase/css/common.css index 54e737e994..2ada6cfb2e 100644 --- a/module/testcase/css/common.css +++ b/module/testcase/css/common.css @@ -1,3 +1 @@ -.delbutton{font-size:12px; color:red; width:80px; padding:0} -.addbutton{font-size:12px; color:darkgreen; width:80px; padding:0} .table-form > tbody > tr > td .btn-group-vertical > .btn {margin-left: 0!important; padding: 2px 8px} diff --git a/module/testcase/css/edit.css b/module/testcase/css/edit.css index 0ec48066f5..4af9e789b3 100644 --- a/module/testcase/css/edit.css +++ b/module/testcase/css/edit.css @@ -1,2 +1,4 @@ .col-side .chosen-container .chosen-drop {width: 216px!important} .col-side .chosen-container {width: 218px!important} +.table-form > tbody > tr > td .btn.addbutton {display:block; margin:1px 0px; width:40px; padding:1px 6px;} +.table-form > tbody > tr > td .btn.delbutton {display:block; margin:1px 0px; width:40px; padding:1px 6px;} diff --git a/module/testcase/js/common.js b/module/testcase/js/common.js index b01fdfdada..367adf35c6 100644 --- a/module/testcase/js/common.js +++ b/module/testcase/js/common.js @@ -111,13 +111,13 @@ function createRow() newRowID ++; var newRow = "
| testcase->stepID;?> | -testcase->stepDesc;?> | -testcase->stepExpect;?> | -actions;?> | +testcase->stepID;?> | +testcase->stepDesc;?> | +testcase->stepExpect;?> | +actions;?> | $stepID | "; - echo '' . html::textarea('steps[]', $step->desc, "rows='1' class='form-control'") . ' | '; + echo '' . html::textarea('steps[]', $step->desc, "rows='1' class='form-control'") . ' | '; echo '' . html::textarea('expects[]', $step->expect, "rows='1' class='form-control'") . ' | '; - echo "";
- echo "";
- echo "";
- echo "";
- echo " | ";
+ echo ""; + echo ""; + echo ""; + echo ""; + echo " | "; echo ''; } ?> diff --git a/module/testcase/view/edit.html.php b/module/testcase/view/edit.html.php index 643649ff2c..b1be0276af 100644 --- a/module/testcase/view/edit.html.php +++ b/module/testcase/view/edit.html.php @@ -15,7 +15,7 @@ testcase->deleteStep);?> testcase->insertBefore);?> testcase->insertAfter);?> -
|---|