|
Lines 432-447
$(document).ready(function()
Link Here
|
| 432 |
<input type="hidden" name="budget_id" id="budget_id" value="[% budget_id %]" />[% Budget_name %] |
432 |
<input type="hidden" name="budget_id" id="budget_id" value="[% budget_id %]" />[% Budget_name %] |
| 433 |
[% ELSE %] |
433 |
[% ELSE %] |
| 434 |
<label class="required" for="budget_id">Fund: </label> |
434 |
<label class="required" for="budget_id">Fund: </label> |
|
|
435 |
[% active_count = 0 %] |
| 436 |
[% IF !ordernumber %] |
| 437 |
[% FOREACH budget_loo IN budget_loop %] |
| 438 |
[% active_count= active_count + budget_loo.b_active %] |
| 439 |
[% END %] |
| 440 |
[% END %] |
| 435 |
<select id="budget_id" size="1" name="budget_id"> |
441 |
<select id="budget_id" size="1" name="budget_id"> |
| 436 |
<option value="">Select a fund</option> |
442 |
<option value="">Select a fund</option> |
| 437 |
[% FOREACH budget_loo IN budget_loop %] |
443 |
[% FOREACH budget_loo IN budget_loop %] |
| 438 |
[% IF ( budget_loo.b_sel ) %] |
444 |
[% IF ( budget_loo.b_sel ) %] |
| 439 |
<option value="[% budget_loo.b_id %]" selected="selected" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]">[% budget_loo.b_txt %]</option> |
445 |
[% active_count = 0 #select no other fund %] |
|
|
446 |
<option value="[% budget_loo.b_id %]" selected="selected" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]"> |
| 447 |
[% ELSIF active_count==1 && budget_loo.b_active %] |
| 448 |
<option value="[% budget_loo.b_id %]" selected="selected" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]"> |
| 440 |
[% ELSE %] |
449 |
[% ELSE %] |
| 441 |
[% IF ( budget_loo.b_active ) %]<option value="[% budget_loo.b_id %]" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]">[% budget_loo.b_txt %]</option> |
450 |
[% bdgclass=budget_loo.b_active? "": "b_inactive" %] |
| 442 |
[% ELSE %]<option value="[% budget_loo.b_id %]" class="b_inactive" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]">[% budget_loo.b_txt %] (inactive)</option> |
451 |
<option value="[% budget_loo.b_id %]" class="[% bdgclass %]" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]"> |
| 443 |
[% END %] |
|
|
| 444 |
[% END %] |
452 |
[% END %] |
|
|
453 |
[% budget_loo.b_txt %][% IF !budget_loo.b_active %] (inactive)[% END %] |
| 454 |
</option> |
| 445 |
[% END %] |
455 |
[% END %] |
| 446 |
</select> |
456 |
</select> |
| 447 |
<label for="showallbudgets" style="float:none;width:auto;"> Show all:</label> |
457 |
<label for="showallbudgets" style="float:none;width:auto;"> Show all:</label> |
| 448 |
- |
|
|