* Finish task #62850.
This commit is contained in:
@@ -22,5 +22,5 @@
|
||||
#plansBox .row {display: inline-table; width: 102%;}
|
||||
#plansBox .col-sm-4 {float: none; display: inline-block; padding-right: 5px;}
|
||||
#dataform th {vertical-align: top; padding-top: 13px;}
|
||||
.undetermined {vertical-align: top !important; padding-top: 13px !important;}
|
||||
.futureBox {vertical-align: top !important; padding-top: 13px !important;}
|
||||
#linkPlan {padding-top: 25px !important;}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#budgetUnit {border-left: 0px;}
|
||||
#plansBox .row {display: inline-table; width: 102%;}
|
||||
#plansBox .col-sm-4 {float: none; display: inline-block;}
|
||||
#dateRange, .undetermined {vertical-align: top !important; padding-top: 13px !important;}
|
||||
#dateRange, .futureBox {vertical-align: top !important; padding-top: 13px !important;}
|
||||
#endList {vertical-align: top; padding-top: 13px;}
|
||||
#dataform th {vertical-align: top; padding-top: 13px;}
|
||||
#linkPlan {padding-top: 25px !important;}
|
||||
|
||||
@@ -287,6 +287,7 @@ $(function()
|
||||
if($(this).prop('checked'))
|
||||
{
|
||||
$('#budget').val('').attr('disabled', 'disabled');
|
||||
budgetOverrunTips(budgetBalance);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -334,7 +335,7 @@ function setBudgetTipsAndAclList(programID)
|
||||
function budgetOverrunTips(budgetLeft)
|
||||
{
|
||||
var budget = $('#budget').val();
|
||||
budget > budgetLeft ? $('#programBudget').removeClass('hidden') : $('#programBudget').addClass('hidden');
|
||||
budget != 0 && budget !== null && budget > budgetLeft ? $('#programBudget').removeClass('hidden') : $('#programBudget').addClass('hidden');
|
||||
}
|
||||
|
||||
$(document).on('change', "#plansBox select[name^='plans']", function()
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
<?php js::set('selectedBranchID', $branchID);?>
|
||||
<?php js::set('productName', $lang->product->name);?>
|
||||
<?php js::set('manageProducts', $lang->project->manageProducts);?>
|
||||
<?php js::set('budgetBalance', $availableBudget);?>
|
||||
<?php $requiredFields = $config->project->create->requiredFields;?>
|
||||
<?php js::set('requiredFields', $requiredFields);?>
|
||||
<div id='mainContent' class='main-content'>
|
||||
@@ -80,7 +81,7 @@
|
||||
</div>
|
||||
<span id='programBudget' class='text-remind hidden'><?php echo $lang->project->budgetOverrun;?></span>
|
||||
</td>
|
||||
<td class='undetermined'>
|
||||
<td class='futureBox'>
|
||||
<div class="checkbox-primary c-future <?php echo strpos($requiredFields, 'budget') !== false ? 'hidden' : '';?>">
|
||||
<input type='checkbox' id='future' name='future' value='1' />
|
||||
<label for='future'><?php echo $lang->project->future;?></label>
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
<?php $requiredFields = $config->project->edit->requiredFields;?>
|
||||
<?php js::set('requiredFields', $requiredFields);?>
|
||||
<?php js::set('budget', $project->budget);?>
|
||||
<?php js::set('budgetBalance', $availableBudget);?>
|
||||
<div id='mainContent' class='main-content'>
|
||||
<div class='center-block'>
|
||||
<div class='main-header'>
|
||||
@@ -86,7 +87,7 @@
|
||||
</div>
|
||||
<span id='programBudget' class='text-remind hidden'><?php echo $lang->project->budgetOverrun;?></span>
|
||||
</td>
|
||||
<td class='undetermined'>
|
||||
<td class='futureBox'>
|
||||
<div class='checkbox-primary'>
|
||||
<input type='checkbox' id='future' name='future' value='1' <?php if($project->budget == 0) echo 'checked';?> />
|
||||
<label for='future'><?php echo $lang->project->future;?></label>
|
||||
|
||||
Reference in New Issue
Block a user