From 8c05dd59f464470e7a3f4cc64b3c4e29b58edc5d Mon Sep 17 00:00:00 2001 From: Catouse Date: Mon, 7 Mar 2016 14:07:49 +0800 Subject: [PATCH] * improve UI of forms for create action. --- module/bug/css/create.css | 7 +++++-- module/bug/view/create.html.php | 30 ++++++++++++++++++++++++++++ module/story/css/create.css | 2 ++ module/story/view/create.html.php | 17 +++++++++++++++- module/task/css/create.css | 2 ++ module/task/view/create.html.php | 15 ++++++++++++++ module/testcase/css/create.css | 2 ++ module/testcase/view/create.html.php | 15 ++++++++++++++ 8 files changed, 87 insertions(+), 3 deletions(-) diff --git a/module/bug/css/create.css b/module/bug/css/create.css index b7597cc6b5..9db9925cfc 100644 --- a/module/bug/css/create.css +++ b/module/bug/css/create.css @@ -17,9 +17,10 @@ #module_chosen.chosen-container .chosen-drop {min-width: 400px; border-top: 1px solid #ddd!important} #openedBuild_chosen.chosen-container .chosen-drop {min-width: 450px; border-top: 1px solid #ddd!important} #module + .chosen-container-single .chosen-single, -#openedBuild + .chosen-container-multi .chosen-choices {border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px;} +#task + .chosen-container-single .chosen-single, +#openedBuild + .chosen-container-multi .chosen-choices {border-top-left-radius: 0; border-bottom-left-radius: 0;} #openedBuild + .chosen-container-multi .chosen-choices, -#mailto + .chosen-container-multi .chosen-choices {border-top-right-radius: 0; border-bottom-right-radius: 0; margin-left: -1px;} +#mailto + .chosen-container-multi .chosen-choices {border-top-right-radius: 0; border-bottom-right-radius: 0;} .dropdown-pris > .btn {background-color: #fff; text-shadow: none} @@ -28,3 +29,5 @@ #contactListGroup .input-group-btn > .btn {margin-left: -1px!important;} #contactListGroup .input-group-btn > .btn:first-child {border-left: none} + +.minw-80px {min-width: 80px;} diff --git a/module/bug/view/create.html.php b/module/bug/view/create.html.php index 6cb3b3d5c1..83a3d2cb6b 100644 --- a/module/bug/view/create.html.php +++ b/module/bug/view/create.html.php @@ -102,6 +102,20 @@ js::set('refresh', $lang->refresh);
bug->severity;?> + bug->severityList as $value) + { + if(!empty($value) && !is_numeric($value)) + { + $isAllNumberPri = false; + break; + } + } + ?> + + bug->severityList, $severity, "class='form-control minw-80px'");?> + + bug->pri;?> + bug->priList as $value) + { + if(!empty($value) && !is_numeric($value)) + { + $isAllNumberPri = false; + break; + } + } + ?> + + bug->priList, $pri, "class='form-control minw-80px'");?> + +
diff --git a/module/story/css/create.css b/module/story/css/create.css index 168ca0b892..1354ae1af4 100644 --- a/module/story/css/create.css +++ b/module/story/css/create.css @@ -11,3 +11,5 @@ select {border:1px solid #ccc} #title.form-control {border-top-right-radius: 0; border-bottom-right-radius: 0} .dropdown-pris > .btn {background-color: #fff;} + +.minw-80px {min-width: 80px;} diff --git a/module/story/view/create.html.php b/module/story/view/create.html.php index 55e87637d8..1003b67d75 100644 --- a/module/story/view/create.html.php +++ b/module/story/view/create.html.php @@ -90,13 +90,28 @@
story->pri;?> + story->priList as $value) + { + if(!empty($value) && !is_numeric($value)) + { + $isAllNumberPri = false; + break; + } + } + ?> + + story->priList, $pri, "class='form-control minw-80px'");?> + + story->estimateAB;?>
diff --git a/module/task/css/create.css b/module/task/css/create.css index f9fc89351b..eb141dbaf6 100644 --- a/module/task/css/create.css +++ b/module/task/css/create.css @@ -1,2 +1,4 @@ .dropdown-pris > .btn {background-color: #fff;} #mailto + .chosen-container-multi .chosen-choices {border-top-left-radius: 0; border-bottom-left-radius: 0} + +.minw-80px {min-width: 80px;} diff --git a/module/task/view/create.html.php b/module/task/view/create.html.php index 18861b184f..c6dfde1e12 100644 --- a/module/task/view/create.html.php +++ b/module/task/view/create.html.php @@ -61,6 +61,20 @@
task->pri;?> + task->priList as $value) + { + if(!empty($value) && !is_numeric($value)) + { + $isAllNumberPri = false; + break; + } + } + ?> + + task->priList, $pri, "class='form-control minw-80px'");?> + + task->estimateAB;?> task->hour}'");?>
diff --git a/module/testcase/css/create.css b/module/testcase/css/create.css index ca2285ab8b..f4691f7040 100644 --- a/module/testcase/css/create.css +++ b/module/testcase/css/create.css @@ -27,3 +27,5 @@ #moduleIdBox .input-group-btn > .btn {margin-left: -1px!important;} #moduleIdBox .input-group-btn > .btn:first-child {border-left: none} + +.minw-80px {min-width: 80px;} diff --git a/module/testcase/view/create.html.php b/module/testcase/view/create.html.php index 6acb2633f7..2d3a7609c0 100644 --- a/module/testcase/view/create.html.php +++ b/module/testcase/view/create.html.php @@ -81,6 +81,20 @@
testcase->pri;?> + testcase->priList as $value) + { + if(!empty($value) && !is_numeric($value)) + { + $isAllNumberPri = false; + break; + } + } + ?> + + testcase->priList, $pri, "class='form-control minw-80px'");?> + +