View | Details | Raw Unified | Return to bug 40870
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt (-17 / +10 lines)
Lines 601-629 Link Here
601
                            [% END %]
601
                            [% END %]
602
602
603
                            [% SET bdgclass = "" %]
603
                            [% SET bdgclass = "" %]
604
                            [% SET selected = 0 %]
604
                            [% IF ( budget_loo.b_sel ) %]
605
                            [% IF ( budget_loo.b_sel ) %]
605
                                [% active_count = 0 #select no other fund %]
606
                                [% active_count = 0 #select no other fund %]
607
                                [% selected = 1 %]
606
                            [% ELSIF active_count==1 && budget_loo.b_active %]
608
                            [% ELSIF active_count==1 && budget_loo.b_active %]
607
609
                                [% selected = 1 %]
608
                            [% ELSE %]
610
                            [% ELSE %]
609
                                [% bdgclass=budget_loo.b_active? "": "b_inactive" | html %]
611
                                [% bdgclass=budget_loo.b_active? "": "b_inactive" | html %]
610
                            [% END %]
612
                            [% END %]
611
613
612
                            [% IF ( budget_loo.b_sel ) %]
614
                            <option
613
                                <option
615
                                value="[% budget_loo.b_id | html %]"
614
                                    value="[% budget_loo.b_id | html %]"
616
                                class="[% bdgclass | html %]"
615
                                    class="[% bdgclass | html %]"
617
                                data-sort1-authcat="[% budget_loo.b_sort1_authcat | html %]"
616
                                    data-sort1-authcat="[% budget_loo.b_sort1_authcat | html %]"
618
                                data-sort2-authcat="[% budget_loo.b_sort2_authcat | html %]"
617
                                    data-sort2-authcat="[% budget_loo.b_sort2_authcat | html %]"
619
                                [% IF selected %]selected="selected"[% END %]
618
                                    selected="selected"
620
                            ></option>
619
                                >
620
                                    [% level_indent | html %][% budget_loo.b_txt | html %][% IF !budget_loo.b_active %](inactive)[% END %]
621
                                </option>
622
                            [% ELSE %]
623
                                <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 %]">
624
                                    [% level_indent | html %][% budget_loo.b_txt | html %][% IF !budget_loo.b_active %](inactive)[% END %]
625
                                </option>
626
                            [% END %]
627
                        [% END %]
621
                        [% END %]
628
                    </select>
622
                    </select>
629
                    <span class="required">Required</span>
623
                    <span class="required">Required</span>
630
- 

Return to bug 40870