diff --git a/module/project/css/task.css b/module/project/css/task.css index e69de29bb2..e30b6a07e9 100644 --- a/module/project/css/task.css +++ b/module/project/css/task.css @@ -0,0 +1 @@ +td.delayed{background: #e84e0f!important; color: white;} diff --git a/module/project/view/view.html.php b/module/project/view/view.html.php index b4adbbe2a6..f6d4e12bc1 100644 --- a/module/project/view/view.html.php +++ b/module/project/view/view.html.php @@ -203,7 +203,7 @@ - totalHours ? round($project->totalConsumed / $project->totalHours, 3) * 100 : 0;?> + totalConsumed + $project->totalLeft) ? round($project->totalConsumed / ($project->totalConsumed + $project->totalLeft), 3) * 100 : 0;?> projectCommon . $lang->project->progress;?> percent;?>  
@@ -226,7 +226,7 @@ project->totalDays;?> days;?> project->totalLeft;?> - totalLeft;?> + totalLeft . $lang->project->workHour;?> project->totalHours;?> diff --git a/module/story/view/review.html.php b/module/story/view/review.html.php index 4f5435cf03..3e01190381 100644 --- a/module/story/view/review.html.php +++ b/module/story/view/review.html.php @@ -32,7 +32,7 @@ var assignedTo = 'lastEditedBy ? print($story->lastEditedBy) : pri story->reviewResult;?> - story->reviewResultList, '', 'class=form-control onchange="switchShow(this.value)"');?> + story->reviewResultList, '', 'class=form-control onchange="switchShow(this.value)"');?> story->rejectedReason;?> diff --git a/module/task/js/common.js b/module/task/js/common.js index e69de29bb2..4fb3b9b7b7 100644 --- a/module/task/js/common.js +++ b/module/task/js/common.js @@ -0,0 +1,51 @@ +function adjustSortBtn() +{ + $('.btn-move-up:first').addClass('disabled').attr('disabled', 'disabled'); + $('.btn-move-down:last').addClass('disabled').attr('disabled', 'disabled'); +} + +$('.btn-move-up, .btn-move-down').click(function() +{ + var $this = $(this); + if($this.hasClass('btn-move-up')) + { + $(this).parents('tr').prev().before($(this).parents('tr')); + } + else + { + $this.parents('tr').next().after($(this).parents('tr')); + } + $('.btn-move-up, .btn-move-down').removeClass('disabled').removeAttr('disabled'); + + adjustSortBtn(); +}); + +function adjustSortBtn() +{ + $('.btn-move-up:first').addClass('disabled').attr('disabled', 'disabled'); + $('.btn-move-down:last').addClass('disabled').attr('disabled', 'disabled'); +} + +$('#modalTeam .btn').click(function() +{ + var team = ''; + var time = 0; + $('[name*=team]').each(function() + { + if($(this).find('option:selected').text() != '') + { + team += ' ' + $(this).find('option:selected').text(); + } + + estimate = parseFloat($(this).parents('td').next('td').find('[name*=teamEstimate]').val()); + if(!isNaN(estimate)) + { + time += estimate; + } + + $('#teamMember').val(team); + $('#estimate').val(time); + }) +}); + +//end diff --git a/module/task/view/view.html.php b/module/task/view/view.html.php index 8761407221..1143e5082a 100644 --- a/module/task/view/view.html.php +++ b/module/task/view/view.html.php @@ -222,7 +222,7 @@ mailto)); - if(empty($mainto)) + if(empty($mailto)) { echo $lang->noData; }