diff --git a/module/product/view/browse.html.php b/module/product/view/browse.html.php
index e5d9062ae6..8641ca966e 100644
--- a/module/product/view/browse.html.php
+++ b/module/product/view/browse.html.php
@@ -97,7 +97,6 @@
-
diff --git a/module/testsuite/view/library.html.php b/module/testsuite/view/library.html.php
index 1ad400f9b8..f85ca98cf6 100644
--- a/module/testsuite/view/library.html.php
+++ b/module/testsuite/view/library.html.php
@@ -69,6 +69,9 @@ js::set('flow', $this->config->global->flow);
'>
+
+ " . $lang->testsuite->view, '', "class='btn'");?>
+
-
- " . $lang->testsuite->view, '', "class='btn'");?>
-
diff --git a/module/testsuite/view/linkcase.html.php b/module/testsuite/view/linkcase.html.php
index 16cdd1d84b..e0bf1e3442 100644
--- a/module/testsuite/view/linkcase.html.php
+++ b/module/testsuite/view/linkcase.html.php
@@ -72,15 +72,15 @@
+
+
diff --git a/module/testtask/control.php b/module/testtask/control.php
index e106b7eb9a..4a3fe25ae9 100644
--- a/module/testtask/control.php
+++ b/module/testtask/control.php
@@ -980,6 +980,6 @@ class testtask extends control
->where('task')->eq((int)$taskID)
->andWhere('`case`')->in($this->post->caseIDList)
->exec();
- die(js::locate($this->session->caseList));
+ die(js::locate($this->session->caseList, 'parent'));
}
}
diff --git a/module/testtask/css/cases.css b/module/testtask/css/cases.css
index 902a7fe6ca..b3bcb1b041 100644
--- a/module/testtask/css/cases.css
+++ b/module/testtask/css/cases.css
@@ -1,10 +1,13 @@
tbody > tr > td > .btn-icon {margin-right: 3px;}
tbody > tr > td .icon-bug {margin-left: -8px;}
-tfoot .table-actions #assignedTo_chosen a.chosen-default{height:26px;line-height:15px}
-tfoot .table-actions .input-group-addon{padding:4px 12px;}
+.table-footer .table-actions .input-group {float: left;}
+.table-footer .table-actions #assignedTo_chosen a.chosen-default{height:28px;line-height:15px}
+.table-footer .table-actions .input-group-addon{padding:4px 12px;}
+.table-footer
+.table-footer.fixedTfootAction .chosen-results li.active-result {color: black;}
+.table-footer .table-actions .input-group #assignedTo_chosen .chosen-single{height:28px;padding:3px 6px}
+.table-footer .table-actions .input-group #assignedTo_chosen .chosen-single span{font-size:12px;}
+.table-footer .table-actions .input-group #assignedTo_chosen .chosen-single div{line-height:10px;}
-tfoot.fixedTfootAction .chosen-results li.active-result {color: black;}
-tfoot .table-actions .input-group #assignedTo_chosen .chosen-single{height:24px;padding:3px 6px}
-tfoot .table-actions .input-group #assignedTo_chosen .chosen-single span{font-size:12px;}
-tfoot .table-actions .input-group #assignedTo_chosen .chosen-single div{line-height:10px;}
+#pageActions {top: -60px;}
diff --git a/module/testtask/model.php b/module/testtask/model.php
index 79e6ac8b4a..228b7b2e74 100644
--- a/module/testtask/model.php
+++ b/module/testtask/model.php
@@ -1132,16 +1132,23 @@ class testtaskModel extends model
if($id == 'id') $class .= ' cell-id';
if($id == 'lastRunResult') $class .= " $run->lastRunResult";
if($id == 'assignedTo' && $run->assignedTo == $account) $class .= ' red';
+ if($id == 'actions') $class .= 'c-actions';
echo "title}'":'') . ">";
switch ($id)
{
case 'id':
- if($mode == 'table') echo " ";
- echo $canView ? html::a($caseLink, sprintf('%03d', $run->case)) : sprintf('%03d', $run->case);
+ if($mode == 'table')
+ {
+ echo html::checkbox('caseIDList', array($run->case => sprintf('%03d', $run->case)));
+ }
+ else
+ {
+ echo $canView ? html::a($caseLink, sprintf('%03d', $run->case)) : sprintf('%03d', $run->case);
+ }
break;
case 'pri':
- echo "";
+ echo "";
echo zget($this->lang->testcase->priList, $run->pri, $run->pri);
echo "";
break;
@@ -1222,7 +1229,7 @@ class testtaskModel extends model
if(common::hasPriv('testtask', 'unlinkCase', $run))
{
$unlinkURL = helper::createLink('testtask', 'unlinkCase', "caseID=$run->id&confirm=yes");
- echo html::a("javascript:ajaxDelete(\"$unlinkURL\",\"casesForm\",confirmUnlink)", '', '', "title='{$this->lang->testtask->unlinkCase}' class='btn-icon'");
+ echo html::a("javascript:ajaxDelete(\"$unlinkURL\",\"casesForm\",confirmUnlink)", '', '', "title='{$this->lang->testtask->unlinkCase}' class='btn'");
}
common::printIcon('testcase', 'createBug', "product=$run->product&branch=$run->branch&extra=projectID=$task->project,buildID=$task->build,caseID=$run->case,version=$run->version,runID=$run->id,testtask=$task->id", $run, 'list', 'bug', '', 'iframe', '', "data-width='90%'");
diff --git a/module/testtask/view/caseheader.html.php b/module/testtask/view/caseheader.html.php
index b2c6c5a946..06ccf2cb0c 100644
--- a/module/testtask/view/caseheader.html.php
+++ b/module/testtask/view/caseheader.html.php
@@ -1,36 +1,39 @@
-
-
- " . html::icon($lang->icons['usecase']) . ' ' . $task->name . '';?>
+
+ {$lang->testtask->view}", '', "class='btn'");?>
+ {$lang->testtask->reportField}", '', "class='btn'");?>
+
+
+
-
-
- '>
- app->loadLang('tree');
- echo isset($moduleID) ? $moduleName : $this->lang->tree->all;
- if(!empty($moduleID))
- {
- $removeLink = $browseType == 'bymodule' ? inlink('cases', "taskID=$taskID&browseType=$browseType¶m=0&orderBy=$orderBy&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}") : 'javascript:removeCookieByKey("taskCaseModule")';
- echo html::a($removeLink, "×", '', "class='text-muted'");
- }
- ?>
-
-
+
-
+
";
common::printIcon('testtask', 'linkCase', "taskID=$task->id", '', 'button', 'link');
- common::printIcon('testcase', 'export', "productID=$productID&orderBy=`case`_desc&taskID=$task->id", '', 'button', '', '', 'iframe export');
+ common::printIcon('testcase', 'export', "productID=$productID&orderBy=`case`_desc&taskID=$task->id", '', 'button', '', '', 'export');
common::printIcon('testtask', 'report', "productID=$productID&taskID=$task->id&browseType=$browseType&branchID=$task->branch&moduleID=" . (empty($moduleID) ? '' : $moduleID));
- echo ' ';
- echo " ";
- common::printRPN($this->session->testtaskList, '');
- echo ' ';
+ common::printBack($this->session->testtaskList, 'btn btn-link');
?>
- '>
testtask->confirmUnlinkCase)?>
session->taskCaseBrowseType == 'bysearch') ? 'all' : $this->session->taskCaseBrowseType);?>
-
-
-
-
-
- icons['product']);?>
-
-
-
-
+
+
+
+
-
-
+
+ show('right', 'pagerjs');?>
+
+
+
+
|