From 5307a1fd6c6f64a0cf0110bbbfde2f5e77fedd50 Mon Sep 17 00:00:00 2001 From: Yagami Date: Wed, 12 Dec 2018 15:20:52 +0800 Subject: [PATCH] * Finish task #5150. --- module/bug/css/create.css | 2 - module/bug/view/create.html.php | 1 + module/bug/view/x.create.html.php | 208 ++++++++++++++++++++++++++++++ 3 files changed, 209 insertions(+), 2 deletions(-) create mode 100644 module/bug/view/x.create.html.php diff --git a/module/bug/css/create.css b/module/bug/css/create.css index b509e95d7e..0656bd6036 100644 --- a/module/bug/css/create.css +++ b/module/bug/css/create.css @@ -44,5 +44,3 @@ .title-group .chosen-container {width: 1%!important; min-width: 70px;} .title-group #severity + .chosen-container > .chosen-single {border-radius: 0!important;} .title-group #pri + .chosen-container > .chosen-single {border-top-left-radius: 0!important; border-bottom-left-radius: 0!important;} - -.title-group .has-icon-right{min-width:700px} diff --git a/module/bug/view/create.html.php b/module/bug/view/create.html.php index fb92e5afca..9f470dde01 100644 --- a/module/bug/view/create.html.php +++ b/module/bug/view/create.html.php @@ -21,6 +21,7 @@ js::set('createBuild', $lang->build->create); js::set('refresh', $lang->refresh); js::set('confirmDeleteTemplate', $lang->bug->confirmDeleteTemplate); ?> +
diff --git a/module/bug/view/x.create.html.php b/module/bug/view/x.create.html.php new file mode 100644 index 0000000000..37dce5eda0 --- /dev/null +++ b/module/bug/view/x.create.html.php @@ -0,0 +1,208 @@ + + * @package bug + * @version $Id: create.html.php 4903 2013-06-26 05:32:59Z wyd621@gmail.com $ + * @link http://www.zentao.net + */ +?> + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bug->product;?> +
+ + session->currentProductType != 'normal'):?> + + +
+
+
+ bug->module?> + +
+
bug->project;?> +
+ bug->openedBuild?> + +
+
bug->lblAssignedTo;?> +
+ +
+
+
+ bug->deadline?> + +
+
bug->type;?> + bug->typeList['designchange']); + unset($lang->bug->typeList['newfeature']); + unset($lang->bug->typeList['trackthings']); + echo html::select('type', $lang->bug->typeList, $type, "class='form-control chosen'"); + ?> + +
+ bug->os?> + bug->osList, $os, "class='form-control chosen'");?> +
+
bug->browser;?> bug->browserList, $browser, "class='form-control chosen'");?>
bug->title;?> +
+
+ +
+ + + +
+
+ bug->severity;?> + bug->severityList as $severityKey => $severityValue) + { + if(!empty($severityKey) and (string)$severityKey != (string)$severityValue) + { + $hasCustomSeverity = true; + break; + } + } + ?> + + bug->severityList, $severity, "class='form-control'");?> + +
+ + +
+ + bug->pri;?> + bug->priList as $priKey => $priValue) + { + if(!empty($priKey) and (string)$priKey != (string)$priValue) + { + $hasCustomPri = true; + break; + } + } + $priList = $lang->bug->priList; + if(end($priList)) + { + unset($priList[0]); + $priList[0] = ''; + } + ?> + + + +
+ + +
+ +
+
bug->steps;?>
bug->story;?> + + +
+ bug->task?> + +
+
bug->lblMailto;?> +
+ fetch('my', 'buildContactLists'); + ?> +
+
> +
+ bug->keywords;?> + +
+
+ + + + +
+
+