Lines 278-290
Link Here
|
278 |
<li> |
278 |
<li> |
279 |
<label for="budget_id_new">Fund: </label> |
279 |
<label for="budget_id_new">Fund: </label> |
280 |
<select id="budget_id_new" name="budget_id"> |
280 |
<select id="budget_id_new" name="budget_id"> |
281 |
<option selected="selected" value="">No fund</option> |
281 |
<option value="">No fund</option> |
282 |
[% FOREACH budget IN budgets %] |
282 |
[% FOREACH budget IN budgets %] |
283 |
<option value="[% budget.b_id | html %]"> |
283 |
[% IF ( budget.selected ) %] |
284 |
[% budget.b_txt | html %] |
284 |
<option value="[% budget.b_id | html %]" selected="selected">[% budget.b_txt | html %] [% IF ( !budget.b_active ) %](inactive)[% END %]</option> |
285 |
</option> |
285 |
[% ELSIF ( budget.b_active ) %] |
|
|
286 |
<option value="[% budget.b_id | html %]">[% budget.b_txt | html %]</option> |
287 |
[% ELSE %] |
288 |
<option value="[% budget.b_id | html %]" class="ab_inactive">[% budget.b_txt | html %] (inactive)</option> |
289 |
[% END %] |
286 |
[% END %] |
290 |
[% END %] |
287 |
</select> |
291 |
</select> |
|
|
292 |
<label for="showallfunds_adj" style="float:none;width:auto;"> Show inactive:</label> |
293 |
<input type="checkbox" id="showallfunds_adj" /> |
288 |
</li> |
294 |
</li> |
289 |
<li> |
295 |
<li> |
290 |
<label for="encumber_new">Encumber while invoice open? </label> |
296 |
<label for="encumber_new">Encumber while invoice open? </label> |
Lines 516-521
Link Here
|
516 |
$('.b_inactive').remove(); |
522 |
$('.b_inactive').remove(); |
517 |
} |
523 |
} |
518 |
}); |
524 |
}); |
|
|
525 |
// same effort for the adjustments |
526 |
var adjBudgetId = $("#budget_id_new"); |
527 |
var disabledAdjBudgetsCopy = adjBudgetId.html(); |
528 |
$('.ab_inactive').remove(); |
529 |
$('#showallfunds_adj').click(function() { |
530 |
if ($(this).is(":checked")) { |
531 |
adjBudgetId.html(disabledAdjBudgetsCopy); //Puts back all the funds |
532 |
} |
533 |
else { |
534 |
$('.ab_inactive').remove(); |
535 |
} |
536 |
}); |
519 |
}); |
537 |
}); |
520 |
</script> |
538 |
</script> |
521 |
[% END %] |
539 |
[% END %] |
522 |
- |
|
|