Lines 447-456
Link Here
|
447 |
</li> |
447 |
</li> |
448 |
<li><label for="budgetid">Fund:</label> |
448 |
<li><label for="budgetid">Fund:</label> |
449 |
<select name="budgetid" id="budgetid"> |
449 |
<select name="budgetid" id="budgetid"> |
450 |
<option value="">Any</option>[% FOREACH budgetsloo IN budgetsloop %] |
450 |
<option value="">Any</option> |
451 |
[% IF ( budgetsloo.selected ) %]<option value="[% budgetsloo.budget_id | html %]" selected="selected">[% budgetsloo.budget_name | html %]</option>[% ELSE %]<option value="[% budgetsloo.budget_id | html %]">[% budgetsloo.budget_name | html %]</option>[% END %][% END %] |
451 |
[% FOREACH budget IN sugg_budgets %] |
|
|
452 |
[% IF ( budget.selected ) %] |
453 |
<option value="[% budget.b_id | html %]" selected="selected">[% budget.b_txt | html %] [% IF ( !budget.b_active ) %](inactive)[% END %]</option> |
454 |
[% ELSIF ( budget.b_active ) %] |
455 |
<option value="[% budget.b_id | html %]">[% budget.b_txt | html %]</option> |
456 |
[% ELSE %] |
457 |
<option value="[% budget.b_id | html %]" class="b_inactive">[% budget.b_txt | html %] (inactive)</option> |
458 |
[% END %] |
459 |
[% END %] |
452 |
</select> |
460 |
</select> |
453 |
</li><li><label for="quantity">Copies:</label> |
461 |
<label for="showallfunds" style="float:none;width:auto;"> Show inactive:</label> |
|
|
462 |
<input type="checkbox" id="showallfunds" /> |
463 |
</li> |
464 |
<li><label for="quantity">Copies:</label> |
454 |
<input type="text" size="10" id="quantity" name="quantity" value="[% quantity | html %]" /> |
465 |
<input type="text" size="10" id="quantity" name="quantity" value="[% quantity | html %]" /> |
455 |
</li> |
466 |
</li> |
456 |
<li> |
467 |
<li> |
Lines 1186-1191
Link Here
|
1186 |
$('#notify').prop('checked', false).prop('disabled', true); |
1197 |
$('#notify').prop('checked', false).prop('disabled', true); |
1187 |
}); |
1198 |
}); |
1188 |
|
1199 |
|
|
|
1200 |
//keep a copy of all budgets before removing the inactives |
1201 |
var budgetId = $("form#add_edit #budgetid"); |
1202 |
var disabledBudgetsCopy = budgetId.html(); |
1203 |
$('.b_inactive').remove(); |
1204 |
|
1205 |
$('#showallfunds').click(function() { |
1206 |
if ($(this).is(":checked")) { |
1207 |
budgetId.html(disabledBudgetsCopy); //Puts back all the funds |
1208 |
} |
1209 |
else { |
1210 |
$('.b_inactive').remove(); |
1211 |
} |
1212 |
}); |
1213 |
|
1189 |
}); |
1214 |
}); |
1190 |
</script> |
1215 |
</script> |
1191 |
[% END %] |
1216 |
[% END %] |