diff --git a/module/program/css/kanban.css b/module/program/css/kanban.css index e51374cbea..2491cb9326 100644 --- a/module/program/css/kanban.css +++ b/module/program/css/kanban.css @@ -6,32 +6,23 @@ .board-item {border: 1px solid #EBEBEB; padding: 5px 10px; cursor: default; border-radius: 2px; background-color: #fff;} .board-item:hover {border-color: #ccc;} -.board-item:first-child {margin-top: 5px;} -.board-item + .board-item {margin-top: 10px;} +.board-item {margin-top: 10px;} .board-item:last-child {margin-bottom: 10px;} -.doing-td .board {margin-top: 5px;} -.doing-td .board:last-child {margin-bottom: 5px;} #kanban {overflow-y: auto;} -#kanban tbody > tr > td {line-height: 20px;} -#kanban tbody > tr > td {border-right: 3px solid #fff; border-bottom: 2px solid #fff;} +#kanban tbody > tr > td {line-height: 24px;} +#kanban tbody > tr > td{border-right: 3px solid #fff; border-bottom: 2px solid #fff;} #kanban thead > tr:first-child > th:not(:first-child) {border-right: 2px solid #fff; border-bottom: 2px solid #fff;} #kanban thead > tr:last-child > th {border: 2px solid #fff;} -#kanban a {line-height: 24px;} - -.fix-table-copy-wrapper thead > tr > th:first-child {background: none!important;} .doing-td, .wait-project, .normal-plan, .normal-release {vertical-align: top !important;} -.doing-td {padding: 0 0 10px 0px !important;} -.doing-td .board{padding: 0px 10px; border-bottom: 2px solid #fff} -.doing-td .board:last-child{border-bottom: unset} +.doing-td .board:first-child{padding-top: 0; border-top: unset;} + +.project-line {width: 100%; height: 2px; background: #fff} .doing-td .table-row .table-col:last-child, .c-progress {width: 30px;} .doing-td .table-row .table-col:first-child {overflow: hidden; text-overflow: ellipsis; white-space: nowrap;} -.doing-td .emptyBoard {background: none; border: unset} - -.table-grouped tbody > tr > td:first-child, .table-grouped thead > tr > th:first-child {padding-left: 3px;} - .scroll {overflow-x: hidden; overflow-y: auto;} +.fix-table-copy-wrapper thead > tr > th:first-child {background: none!important;} diff --git a/module/program/model.php b/module/program/model.php index cdbd6da9a9..aa2520e0c8 100644 --- a/module/program/model.php +++ b/module/program/model.php @@ -258,6 +258,8 @@ class programModel extends model $project->hours = zget($hours, $project->id, array()); $product->projects[$status][] = $project; } + + $product->rowspan = isset($product->projects['doing']) ? count($product->projects['doing']) > 0 ? count($product->projects['doing']) : 1 : 1; } } @@ -266,6 +268,10 @@ class programModel extends model { $program->products = zget($productGroup, $programID, array()); $program->rowspan = count($program->products) > 0 ? count($program->products) : 1; + foreach($program->products as $product) + { + if(isset($product->projects['doing']) and count($product->projects['doing']) > 0) $program->rowspan += count($product->projects['doing']) - 1; + } if(in_array($programID, $involvedPrograms)) { diff --git a/module/program/view/kanban.html.php b/module/program/view/kanban.html.php index fe92e069d4..f3cb7c1fef 100644 --- a/module/program/view/kanban.html.php +++ b/module/program/view/kanban.html.php @@ -36,7 +36,7 @@ $program):?> - name;?>>name;?> + name;?>>name;?> products)):?> products as $productID => $product):?> @@ -48,8 +48,8 @@ if(($doingCounts < $planCounts || $doingCounts < $releaseCount) and ($planCounts > 5 or $releaseCount > 5)) $scroll = 'scroll'; ?> ';?> - name;?>>name;?> - + name;?> rowspan='rowspan;?>'>name;?> +
plans as $planID => $plan):?>
@@ -62,29 +62,33 @@
- - projects['wait'])):?> - projects['wait'] as $projectID => $project):?> -
-
-
- createLink('project', 'index', "projectID=$project->id"), $project->name);?> -
-
-
- - - - - projects['doing'])):?> - projects['doing'] as $project):?> -
-
> + +
+ projects['wait'])):?> + projects['wait'] as $projectID => $project):?> +
createLink('project', 'index', "projectID=$project->id"), $project->name);?>
-
+
+
+ + +
+ + projects['doing'])):?> + + projects['doing'] as $projectID => $project):?> + ";?> + +
+
> +
+
+ createLink('project', 'index', "projectID=$project->id"), $project->name);?> +
+
hours->progress) ? $project->hours->progress : 0;?>
@@ -95,20 +99,16 @@
- - - projects['doing'])):?> - projects['doing'] as $project):?> execution)):?>
>
-
+
createLink('execution', 'task', "executionID={$project->execution->id}"), $project->execution->name);?>
-
+
execution->hours->progress) ? $project->execution->hours->progress : 0;?>
@@ -119,20 +119,15 @@
- -
-
-
- - - + + rowspan;?>>
releases as $releaseID => $release):?>
-
+
marker ? " " : '';?> createLink('release', 'view', "releaseID=$release->id"), $release->name . $flag);?>
@@ -141,6 +136,15 @@
+ + ";?> + + + + + + + ';?> @@ -166,12 +170,12 @@