diff --git a/module/block/view/todoblock.html.php b/module/block/view/todoblock.html.php index 9dd50fb922..65e41c4388 100644 --- a/module/block/view/todoblock.html.php +++ b/module/block/view/todoblock.html.php @@ -153,6 +153,7 @@ if(!$selfCall) die(include('./todolist.html.php')); $block.on('click', '.todo-form-trigger', function() { toggleForm($(this).data('trigger')); + $('.block-todoes .commitButton').removeClass('disabled'); }); $form.timeSpanControl( { diff --git a/module/execution/view/treestory.html.php b/module/execution/view/treestory.html.php index 34b8565ec6..557bd82db8 100644 --- a/module/execution/view/treestory.html.php +++ b/module/execution/view/treestory.html.php @@ -70,7 +70,7 @@ foreach($modulePath as $key => $module) { $moduleTitle .= $module->name; - if(!common::printLink('product', 'browse', "productID=$story->product&branch=$story->branch&browseType=byModule¶m=$module->id", $module->name)) echo $module->name; + if(!common::printLink('product', 'browse', "productID=$story->product&branch=$story->branch&browseType=byModule¶m=$module->id", $module->name, '', "data-app='product'")) echo $module->name; if(isset($modulePath[$key + 1])) { $moduleTitle .= '/'; diff --git a/module/program/lang/de.php b/module/program/lang/de.php index dfa5bc3c39..eee8d70de7 100644 --- a/module/program/lang/de.php +++ b/module/program/lang/de.php @@ -101,11 +101,11 @@ $lang->program->noProgram = 'No program.'; $lang->program->showClosed = 'Closed programs.'; $lang->program->tips = 'If a parent program is selected, the products under the parent program can be associated. If no program is selected for the project, a product with the same name as the project is created and associated with the project by default.'; $lang->program->confirmBatchUnlink = "Do you want to batch unlink these stakeholders?"; -$lang->program->beginLetterParent = 'The start date of the program is < the start date of the parent program:'; -$lang->program->endGreaterParent = 'The finish date of the program is > the finish date of the parent program:'; -$lang->program->dateExceedParent = 'The start and finish date of the program was > the start and finish date of the parent program:'; -$lang->program->beginGreateChild = 'The start date of the program is > the minimum start date of the subprogram or project:'; -$lang->program->endLetterChild = 'The finish date of the program is < the maximum finish date of the subprogram or project:'; +$lang->program->beginLetterParent = 'The start date of the program is less than the start date of the parent program:'; +$lang->program->endGreaterParent = 'The finish date of the program is greater than the finish date of the parent program:'; +$lang->program->dateExceedParent = 'The start and finish date of the program was greater than the start and finish date of the parent program:'; +$lang->program->beginGreateChild = 'The start date of the program is greater than the minimum start date of the subprogram or project:'; +$lang->program->endLetterChild = 'The finish date of the program is less than the maximum finish date of the subprogram or project:'; $lang->program->dateExceedChild = 'The start and finish date of the program no longer include the date scope of the subprogram or project:'; $lang->program->closeErrorMessage = 'There are subprograms or projects that are not closed'; $lang->program->hasChildren = 'It has child programs or projects. You cannot delete it.'; diff --git a/module/program/lang/en.php b/module/program/lang/en.php index 9e0ee82a70..62c84da556 100644 --- a/module/program/lang/en.php +++ b/module/program/lang/en.php @@ -101,11 +101,11 @@ $lang->program->noProgram = 'No program.'; $lang->program->showClosed = 'Closed'; $lang->program->tips = 'If a parent program is selected, the products under the parent program can be associated. If no program is selected for the project, a product with the same name as the project is created and associated with the project by default.'; $lang->program->confirmBatchUnlink = "Do you want to batch unlink these stakeholders?"; -$lang->program->beginLetterParent = 'The start date of the program is < the start date of the parent program:'; -$lang->program->endGreaterParent = 'The finish date of the program is > the finish date of the parent program:'; -$lang->program->dateExceedParent = 'The start and finish date of the program was > the start and finish date of the parent program:'; -$lang->program->beginGreateChild = 'The start date of the program is > the minimum start date of the subprogram or project:'; -$lang->program->endLetterChild = 'The finish date of the program is < the maximum finish date of the subprogram or project:'; +$lang->program->beginLetterParent = 'The start date of the program is less than the start date of the parent program:'; +$lang->program->endGreaterParent = 'The finish date of the program is greater than the finish date of the parent program:'; +$lang->program->dateExceedParent = 'The start and finish date of the program was greater than the start and finish date of the parent program:'; +$lang->program->beginGreateChild = 'The start date of the program is greater than the minimum start date of the subprogram or project:'; +$lang->program->endLetterChild = 'The finish date of the program is less than the maximum finish date of the subprogram or project:'; $lang->program->dateExceedChild = 'The start and finish date of the program no longer include the date scope of the subprogram or project:'; $lang->program->closeErrorMessage = 'There are subprograms or projects that are not closed'; $lang->program->hasChildren = 'The program has a child program or the project exists and can not be deleted.'; diff --git a/module/project/css/create.css b/module/project/css/create.css index 8e58ca4a64..fdb72ad390 100644 --- a/module/project/css/create.css +++ b/module/project/css/create.css @@ -11,13 +11,14 @@ #copyProjectModal a.active {border-color: #00da88; color: #00da88; background-color: #E5FFE6;} #copyProjectModal a.active:after {position: absolute; content: '\e92f'; font-family: ZentaoIcon; font-size: 20px; right: 25px;} #copyProjectModal a.cancel {color: #ff5d5d;} +#mainContent td.required:after {right: -4px;} #budget {border-right: 0px;} #budgetUnit {border-left: 0px;} #projectName {display: inline-block; width: 32%;} #productsBox a {border-radius: 2px !important;} #productsBox .col-sm-4 {padding-right: 5px;} #productsBox .addProduct {padding-left: 0px !important;} -#productsBox .required:after{right: -6px !important;} +#productsBox .required:after{right: -10px !important;} #productsBox .input-group-addon > div {display: inline-block !important;} #plansBox .row {display: inline-table; width: 102%;} #plansBox .col-sm-4 {float: none; display: inline-block; padding-right: 5px;} diff --git a/module/project/css/edit.css b/module/project/css/edit.css index 50ad401e0b..57332fa1c0 100644 --- a/module/project/css/edit.css +++ b/module/project/css/edit.css @@ -6,3 +6,4 @@ #endList {vertical-align: top; padding-top: 13px;} #dataform th {vertical-align: top; padding-top: 13px;} #linkPlan {padding-top: 25px !important;} +#productsBox .row .col-sm-4.required::after {right: -5px;} diff --git a/module/project/js/create.js b/module/project/js/create.js index 6a2fc188ec..aa4d3746ad 100644 --- a/module/project/js/create.js +++ b/module/project/js/create.js @@ -149,6 +149,8 @@ function setParentProgram(parentProgram) }); $('#parent').attr('data-lastSelected', parentProgram); + if(parentProgram != '0') $('#productsBox .row .input-group:first').addClass('required'); + if(parentProgram == '0') $('#productsBox .row .input-group').removeClass('required'); } /** @@ -185,6 +187,9 @@ function addNewProduct(obj) $('#productName').removeAttr('disabled', true); $('#productsBox .addProduct').removeClass('hidden'); $('#productTitle').html(productName); + + if($('#parent').val() != '0') $('#productsBox .addProduct .input-group:first').addClass('required'); + if($('#parent').val() == '0') $('#productsBox .addProduct .input-group').removeClass('required'); } else { @@ -246,7 +251,7 @@ function loadBranches(product) if($('#productsBox .row .input-group:last select:first').val() != 0) { var length = $('#productsBox .row .input-group').size(); - var $html = $('#productsBox .row .col-sm-4:last').html(); + var $html = $('#productsBox .row .col-sm-4:last').html().replace('required', ''); $('#productsBox .row .col-sm-4:last').find('.input-group-addon').remove(); $('#productsBox .row').append('
| task->storyAB;?> | -task->pri;?> | -task->estStarted;?> | -task->deadline;?> | -task->assignedTo;?> | -task->estimate;?> | -actions;?> | +task->storyAB;?> | +task->pri;?> | +task->estStarted;?> | +task->deadline;?> | +task->assignedTo;?> | +task->estimate;?> | +actions;?> |
|---|