* Finish task #57859.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#mainMenu .pull-left .checkbox-primary {display: inline-block; margin-left: 10px;}
|
||||
#projectsSummary {padding-left: 10px;}
|
||||
.main-table tbody>tr>td:first-child, .main-table thead>tr>th:first-child {padding-left: 8px;}
|
||||
.table tbody>tr>td .dropdown {display: inline-block; line-height: 1;}
|
||||
tbody.sortable > tr > td.sort-handler .table-nest-toggle:before {cursor: pointer !important;}
|
||||
|
||||
@@ -28,6 +28,21 @@ $(function()
|
||||
$('.table-footer #checkAll').prop('checked', false);
|
||||
$('#programForm').removeClass('has-row-checked');
|
||||
}
|
||||
|
||||
var summary = checkedProjects.replace('%s', checkedLength);
|
||||
var statistic = "<div id='projectsSummary' class='table-statistic'>" + summary + "</div>";
|
||||
if(checkedLength > 0)
|
||||
{
|
||||
$('#programSummary').addClass('hidden');
|
||||
$('#projectsSummary').remove();
|
||||
$('.editCheckbox').after(statistic);
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#programSummary').removeClass('hidden');
|
||||
$('#projectsSummary').addClass('hidden');
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$(document).on('click', ".table-footer #checkAll", function()
|
||||
@@ -36,11 +51,19 @@ $(function()
|
||||
{
|
||||
$(":checkbox[name^='projectIdList']").prop('checked', true);
|
||||
$('#programForm').addClass('has-row-checked');
|
||||
var checkedLength = $(":checkbox[name^='projectIdList']:checked").length;
|
||||
var summary = checkedProjects.replace('%s', checkedLength);
|
||||
var statistic = "<div id='projectsSummary' class='table-statistic'>" + summary + "</div>";
|
||||
$('#programSummary').addClass('hidden');
|
||||
$('#projectsSummary').remove();
|
||||
$('.editCheckbox').after(statistic);
|
||||
}
|
||||
else
|
||||
{
|
||||
$(":checkbox[name^='projectIdList']").prop('checked', false);
|
||||
$('#programForm').removeClass('has-row-checked');
|
||||
$('#programSummary').removeClass('hidden');
|
||||
$('#projectsSummary').addClass('hidden');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -111,6 +111,7 @@ $lang->program->unlinkStakeholder = 'Unlink Stakeholder';
|
||||
$lang->program->readjustTime = 'Change the program begin&end date.';
|
||||
$lang->program->accessDenied = 'You have no access to the program.';
|
||||
$lang->program->beyondParentBudget = 'The remaining budget of the owned program has been exceeded.';
|
||||
$lang->program->checkedProjects = 'Seleted %s items';
|
||||
|
||||
$lang->program->endList[31] = 'One month';
|
||||
$lang->program->endList[93] = 'Trimester';
|
||||
|
||||
@@ -111,6 +111,7 @@ $lang->program->unlinkStakeholder = 'Do you want to remove the Stakeholder?';
|
||||
$lang->program->readjustTime = 'Change the program begin&end date.';
|
||||
$lang->program->accessDenied = 'You have no access to the program.';
|
||||
$lang->program->beyondParentBudget = 'The remaining budget of the owned program has been exceeded.';
|
||||
$lang->program->checkedProjects = 'Seleted %s items';
|
||||
|
||||
$lang->program->endList[31] = 'One month';
|
||||
$lang->program->endList[93] = 'Trimester';
|
||||
|
||||
@@ -111,6 +111,7 @@ $lang->program->unlinkStakeholder = 'Unlink Stakeholder';
|
||||
$lang->program->readjustTime = 'Change the program begin&end date.';
|
||||
$lang->program->accessDenied = 'You have no access to the program.';
|
||||
$lang->program->beyondParentBudget = 'The remaining budget of the owned program has been exceeded.';
|
||||
$lang->program->checkedProjects = "Pour s électionner l'élément% s";
|
||||
|
||||
$lang->program->endList[31] = 'One month';
|
||||
$lang->program->endList[93] = 'Trimester';
|
||||
|
||||
@@ -111,6 +111,7 @@ $lang->program->unlinkStakeholder = '您确定要移除干系人吗?';
|
||||
$lang->program->readjustTime = '重新调整项目集起止时间';
|
||||
$lang->program->accessDenied = '你无权访问该项目集';
|
||||
$lang->program->beyondParentBudget = '已超出所属项目集的剩余预算';
|
||||
$lang->program->checkedProjects = '已选择%s项';
|
||||
|
||||
$lang->program->endList[31] = '一个月';
|
||||
$lang->program->endList[93] = '三个月';
|
||||
|
||||
@@ -16,8 +16,9 @@
|
||||
<?php js::set('edit', $lang->edit);?>
|
||||
<?php js::set('selectAll', $lang->selectAll);?>
|
||||
<?php js::set('hasProject', $hasProject);?>
|
||||
<?php js::set('checkedProjects', $lang->program->checkedProjects);?>
|
||||
<?php if($programType == 'bygrid'):?>
|
||||
<style> #mainMenu{padding-left: 10px; padding-right: 10px;} </style>
|
||||
<style>#mainMenu{padding-left: 10px; padding-right: 10px;}</style>
|
||||
<?php endif;?>
|
||||
<div id='mainMenu' class='clearfix'>
|
||||
<div class="btn-toolBar pull-left">
|
||||
|
||||
@@ -99,7 +99,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<div class='table-footer <?php if($status == 'bySearch') echo 'hide';?>'>
|
||||
<div class="table-statistic"> <?php echo $summary;?></div>
|
||||
<div id="programSummary" class="table-statistic"> <?php echo $summary;?></div>
|
||||
<?php if($status != 'bySearch') $pager->show('right', 'pagerjs');?>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user