|
Lines 340-361
Link Here
|
| 340 |
<select id="budget_id" size="1" name="budget_id"> |
340 |
<select id="budget_id" size="1" name="budget_id"> |
| 341 |
<option value="">Select a fund</option> |
341 |
<option value="">Select a fund</option> |
| 342 |
[% FOREACH budget_loo IN budget_loop %] |
342 |
[% FOREACH budget_loo IN budget_loop %] |
|
|
343 |
[% level_indent_cnt = 0 %] |
| 344 |
[% level_indent = "" %] |
| 345 |
[% WHILE level_indent_cnt < budget_loo.b_level %] |
| 346 |
[% level_indent = level_indent _ " " %] |
| 347 |
[% level_indent_cnt = level_indent_cnt +1 %] |
| 348 |
[% END %] |
| 349 |
|
| 343 |
[% IF ( budget_loo.b_sel ) %] |
350 |
[% IF ( budget_loo.b_sel ) %] |
| 344 |
[% active_count = 0 #select no other fund %] |
351 |
[% active_count = 0 #select no other fund %] |
| 345 |
<option value="[% budget_loo.b_id | html %]" selected="selected" data-sort1-authcat="[% budget_loo.b_sort1_authcat | html %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat | html %]" |
352 |
<option value="[% budget_loo.b_id | html %]" selected="selected" data-sort1-authcat="[% budget_loo.b_sort1_authcat | html %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat | html %]" |
| 346 |
style="padding-left:[% budget_loo.b_level | html %]em;" |
|
|
| 347 |
> |
353 |
> |
| 348 |
[% ELSIF active_count==1 && budget_loo.b_active %] |
354 |
[% ELSIF active_count==1 && budget_loo.b_active %] |
| 349 |
<option value="[% budget_loo.b_id | html %]" selected="selected" data-sort1-authcat="[% budget_loo.b_sort1_authcat | html %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat | html %]" |
355 |
<option value="[% budget_loo.b_id | html %]" selected="selected" data-sort1-authcat="[% budget_loo.b_sort1_authcat | html %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat | html %]" |
| 350 |
style="padding-left:[% budget_loo.b_level | html %]em;" |
|
|
| 351 |
> |
356 |
> |
| 352 |
[% ELSE %] |
357 |
[% ELSE %] |
| 353 |
[% bdgclass=budget_loo.b_active? "": "b_inactive" | html %] |
358 |
[% bdgclass=budget_loo.b_active? "": "b_inactive" | html %] |
| 354 |
<option value="[% budget_loo.b_id | html %]" class="[% bdgclass | html %]" data-sort1-authcat="[% budget_loo.b_sort1_authcat | html %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat | html %]" |
359 |
<option value="[% budget_loo.b_id | html %]" class="[% bdgclass | html %]" data-sort1-authcat="[% budget_loo.b_sort1_authcat | html %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat | html %]" |
| 355 |
style="padding-left:[% budget_loo.b_level | html %]em;" |
|
|
| 356 |
> |
360 |
> |
| 357 |
[% END %] |
361 |
[% END %] |
| 358 |
[% budget_loo.b_txt | html %][% IF !budget_loo.b_active %] (inactive)[% END %] |
362 |
[%level_indent%][% budget_loo.b_txt | html %][% IF !budget_loo.b_active %] (inactive)[% END %] |
| 359 |
</option> |
363 |
</option> |
| 360 |
[% END %] |
364 |
[% END %] |
| 361 |
</select> |
365 |
</select> |
| 362 |
- |
|
|