From 98afc277a36b7c9f9226fd4133e37293ab378bdd Mon Sep 17 00:00:00 2001 From: Catouse Date: Mon, 31 Mar 2014 11:38:43 +0800 Subject: [PATCH] * ajusted views of module 'bug'. --- module/bug/css/create.css | 9 +- module/bug/css/edit.css | 2 - module/bug/view/buildtemplates.html.php | 8 +- module/bug/view/create.html.php | 211 +++++++++++++----------- module/bug/view/edit.html.php | 155 ++++++++--------- module/task/view/create.html.php | 2 +- module/task/view/edit.html.php | 10 +- www/theme/default/style.css | 1 + 8 files changed, 207 insertions(+), 191 deletions(-) diff --git a/module/bug/css/create.css b/module/bug/css/create.css index 35240045b6..b826dd7d6e 100644 --- a/module/bug/css/create.css +++ b/module/bug/css/create.css @@ -1,9 +1,2 @@ -#steps {width:99.6%} -.text-1 {width: 85%} -#task, #story{width: 85.4%;} -#mailto{width: 85.5%} -#keywords{width: 85.1%;} -.w-p100 {margin:0} -/* The build template setting. */ -.button-c {padding:2px} .ke-outline .ke-icon-savetemplate {background-image: url(theme/default/images/kindeditor/save.gif); background-position: center; width: 56px; height: 20px;} +#tplBox {padding: 0} diff --git a/module/bug/css/edit.css b/module/bug/css/edit.css index b627c8cbcd..e69de29bb2 100644 --- a/module/bug/css/edit.css +++ b/module/bug/css/edit.css @@ -1,2 +0,0 @@ -select.select-3,#mailto,#module,#story-chzn {width:230px} -.text-1 {width:220px} diff --git a/module/bug/view/buildtemplates.html.php b/module/bug/view/buildtemplates.html.php index 6e083196a4..f7fbf29b05 100644 --- a/module/bug/view/buildtemplates.html.php +++ b/module/bug/view/buildtemplates.html.php @@ -5,9 +5,9 @@ KindEditor.lang({'savetemplate' : 'bug->saveTemplate;?>'}); $template) { - echo ""; - echo '' . $lang->arrow. " $template->title"; - echo "  "; + echo "
  • "; + echo $lang->arrow. " $template->title"; + echo "  "; echo ""; - echo '
    '; + echo '
  • '; } diff --git a/module/bug/view/create.html.php b/module/bug/view/create.html.php index 28b6f3831d..98f2dec61c 100644 --- a/module/bug/view/create.html.php +++ b/module/bug/view/create.html.php @@ -22,101 +22,120 @@ js::set('createRelease', $lang->release->create); js::set('createBuild', $lang->build->create); js::set('refresh', $lang->refresh); ?> +
    +
    +
    + icons['bug']);?> + icons['create']);?> bug->create;?> +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    bug->lblProductAndModule;?> + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    bug->create;?>
    bug->lblProductAndModule;?> - - - createLink('tree', 'browse', "rootID=$productID&view=bug"), $lang->tree->manage, '_blank'); - echo html::a("javascript:loadProductModules($productID)", $lang->refresh); - } - ?> - -
    bug->project;?>
    bug->openedBuild;?> - - - -
    bug->lblAssignedTo;?>
    bug->title;?>
    bug->steps;?> -
    -
    -
    fetch('bug', 'buildTemplates');?>
    -
    -
    bug->lblStory;?> - -
    bug->task;?>
    bug->lblTypeAndSeverity;?> - bug->typeList, $type, 'class=form-control');?> - bug->severityList, $severity, 'class=form-control');?> -
    bug->lblSystemBrowserAndHardware;?> - bug->osList, $os, 'class=form-control');?> - bug->browserList, $browser, 'class=form-control');?> -
    bug->lblMailto;?> - -
    bug->keywords;?>
    bug->files;?>fetch('file', 'buildform', 'fileCount=2&percent=0.85');?>
    - -
    - +
    +
    + "; + echo html::a($this->createLink('tree', 'browse', "rootID=$productID&view=bug"), $lang->tree->manage, '_blank'); + echo '  '; + echo html::a("javascript:loadProductModules($productID)", $lang->refresh); + echo ''; + } + ?> +
    +
    bug->project;?>
    bug->openedBuild;?> + + + +
    bug->lblAssignedTo;?>
    bug->title;?>
    bug->steps;?> +
      fetch('bug', 'buildTemplates');?>
    +
    bug->lblStory;?> + +
    bug->task;?>
    bug->lblTypeAndSeverity;?> +
    + bug->typeList, $type, "class='form-control' style='width: 50%'");?> + bug->severityList, $severity, "class='form-control' style='width: 50%'");?> +
    +
    bug->lblSystemBrowserAndHardware;?> +
    + bug->osList, $os, "class='form-control' style='width: 50%'");?> + bug->browserList, $browser, "class='form-control' style='width: 50%'");?> +
    +
    bug->lblMailto;?> + + + +
    bug->keywords;?>
    bug->files;?>fetch('file', 'buildform', 'fileCount=2&percent=0.85');?>
    + +
    + +
    diff --git a/module/bug/view/edit.html.php b/module/bug/view/edit.html.php index 9482da67f9..2466298bac 100644 --- a/module/bug/view/edit.html.php +++ b/module/bug/view/edit.html.php @@ -28,121 +28,123 @@ js::set('oldOpenedBuild' , $bug->openedBuild); js::set('oldResolvedBuild' , $bug->resolvedBuild); ?> -
    +
    -
    - BUG #id . $lang->colon;?> - title), 'class=form-control');?> -
    -
    +
    + icons['bug']) . ' #' . $bug->id;?> + createLink('bug', 'view', "bugID=$bug->id"), $bug->title);?> + icons['edit']) . ' ' . $lang->bug->edit;?> +
    +
    + save)?> +
    - - - - - - - -
    - - -
    -
    - bug->legendSteps;?> - steps), "rows='12' class='form-control'");?> -
    -
    - bug->legendComment;?> - -
    -
    - bug->legendAttatch;?> - fetch('file', 'buildform', 'filecount=2');?> -
    -
    - session->bugList != false ? $app->session->bugList : inlink('browse', "productID=$bug->product"); - echo html::linkButton($lang->goback, $browseLink); - ?> -
    -
    +
    +
    +
    +
    + title), 'class="form-control" placeholder="' . $lang->bug->title . '"');?> +
    +
    + bug->legendSteps;?> +
    steps), "rows='12' class='form-control'");?>
    +
    +
    + bug->legendComment;?> +
    +
    +
    + bug->legendAttatch;?> +
    fetch('file', 'buildform', 'filecount=2');?>
    +
    +
    + session->bugList != false ? $app->session->bugList : inlink('browse', "productID=$bug->product"); + echo html::linkButton($lang->goback, $browseLink); + ?> +
    -
    + + +
    +
    bug->legendBasicInfo;?> - +
    - + - + - + - - + - - + - - + - + - + - + - + - + - + - - + +
    bug->product;?>bug->product;?>
    bug->module;?>bug->module;?>
    bug->productplan;?>bug->productplan;?> plan, "class='form-control'");?>
    bug->type;?>bug->typeList, $bug->type, "class='form-control'");?> + bug->type;?>bug->typeList, $bug->type, "class='form-control'");?>
    bug->severity;?>bug->severityList, $bug->severity, "class='form-control'");?> + bug->severity;?>bug->severityList, $bug->severity, "class='form-control'");?>
    bug->pri;?>bug->priList, $bug->pri, "class='form-control'");?> + bug->pri;?>bug->priList, $bug->pri, "class='form-control'");?>
    bug->status;?>bug->status;?> bug->statusList, $bug->status, "class='form-control'");?>
    bug->confirmed;?>bug->confirmed;?> bug->confirmedList[$bug->confirmed];?>
    bug->assignedTo;?>bug->assignedTo;?> assignedTo, "class='form-control chosen'");?>
    bug->os;?>bug->os;?> bug->osList, $bug->os, "class='form-control'");?>
    bug->browser;?>bug->browser;?> bug->browserList, $bug->browser, "class='form-control'");?>
    bug->keywords;?>bug->keywords;?> keywords, 'class="form-control"');?>
    bug->mailto;?>mailto), 'class="form-control" multiple');?>bug->mailto;?>mailto), 'class="form-control chosen" multiple');?>
    bug->legendPrjStoryTask;?> - +
    - + - - + - +
    bug->project;?>bug->project;?> project, 'class=form-control onchange=loadProjectRelated(this.value)');?>
    bug->story;?>
    story, "class=select-3");?>
    +
    bug->story;?>
    story, "class='form-control'");?>
    bug->task;?>bug->task;?>
    task, "class='form-control'");?>
    @@ -150,59 +152,60 @@ js::set('oldResolvedBuild' , $bug->resolvedBuild);
    bug->legendLife;?> - +
    - + - - + + - + - + - + - + resolution != 'duplicate') echo "style='display:none'";?>> - + - + - +
    bug->openedBy;?>bug->openedBy;?> openedBy];?>
    bug->openedBuild;?>openedBuild, 'size=4 multiple=multiple class=select-3');?>bug->openedBuild;?>openedBuild, 'size=4 multiple=multiple class="chosen form-control"');?>
    bug->resolvedBy;?>bug->resolvedBy;?> resolvedBy, "class='form-control'");?>
    bug->resolvedDate;?>bug->resolvedDate;?> resolvedDate, 'class=form-control');?>
    bug->resolvedBuild;?>bug->resolvedBuild;?> resolvedBuild, "class='form-control'");?>
    bug->resolution;?>bug->resolution;?> bug->resolutionList, $bug->resolution, 'class=form-control onchange=setDuplicate(this.value)');?>
    bug->duplicateBug;?>bug->duplicateBug;?> duplicateBug, 'class=form-control');?>
    bug->closedBy;?>bug->closedBy;?> closedBy, "class='form-control'");?>
    bug->closedDate;?>bug->closedDate;?> closedDate, 'class=form-control');?>
    bug->legendMisc;?> - +
    - + - +
    bug->linkBug;?>bug->linkBug;?> linkBug, 'class="form-control"');?>
    bug->case;?>bug->case;?> case, 'class="form-control"');?>
    -
    + + + +
    diff --git a/module/task/view/create.html.php b/module/task/view/create.html.php index 80d7969716..d1216c9fb8 100644 --- a/module/task/view/create.html.php +++ b/module/task/view/create.html.php @@ -19,7 +19,7 @@
    icons['task']);?> - task->create;?> + icons['create']);?> task->create;?>
    diff --git a/module/task/view/edit.html.php b/module/task/view/edit.html.php index e9eac11b6e..a70f23d407 100644 --- a/module/task/view/edit.html.php +++ b/module/task/view/edit.html.php @@ -32,19 +32,21 @@
    - name, 'class="form-control"');?> + name, 'class="form-control" placeholder="' . $lang->task->name . '"');?>
    task->desc;?> - desc), "rows='8' class='form-control'");?> +
    + desc), "rows='8' class='form-control'");?> +
    comment;?> - +
    files;?> - fetch('file', 'buildform');?> +
    fetch('file', 'buildform');?>
    save) . html::linkButton($lang->goback, $this->inlink('view', "taskID=$task->id")) .html::hidden('consumed', $task->consumed);?> diff --git a/www/theme/default/style.css b/www/theme/default/style.css index 15b0cb1f6c..4d497413d0 100644 --- a/www/theme/default/style.css +++ b/www/theme/default/style.css @@ -239,6 +239,7 @@ i[class^="icon-"].disabled,i[class*=" icon-"].disabled,i[class^="icon-"].disable .form-condensed .chosen-container {font-size: 12px} .form-condensed .chosen-container-single .chosen-single {padding: 5px 10px} .form-condensed .chosen-container-single .chosen-single abbr {top: 5px; right: 18px} +.form-condensed fieldset > .form-group {margin-bottom: 0;} /* help in form */ .help-block {margin-bottom: 5px;}