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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt (-10 / +19 lines)
Lines 414-430 $(document).ready(function() Link Here
414
                    <input type="hidden" name="budget_id" id="budget_id" value="[% budget_id %]" />[% Budget_name %]
414
                    <input type="hidden" name="budget_id" id="budget_id" value="[% budget_id %]" />[% Budget_name %]
415
                [% ELSE %]
415
                [% ELSE %]
416
                <label class="required" for="budget_id">Fund: </label>
416
                <label class="required" for="budget_id">Fund: </label>
417
                <select id="budget_id" onchange="fetchSortDropbox(this.form)" size="1" name="budget_id">
417
                [% active_count = 0 %]
418
                        <option value="">Select a fund</option>
418
                [% IF !ordernumber %]
419
                [% FOREACH budget_loo IN budget_loop %]
419
                    [% FOREACH budget_loo IN budget_loop %]
420
                    [% IF ( budget_loo.b_sel ) %]
420
                        [% active_count= active_count + budget_loo.b_active %]
421
                        <option value="[% budget_loo.b_id %]" selected="selected">[% budget_loo.b_txt %]</option>
422
                    [% ELSE %]
423
                        [% IF ( budget_loo.b_active ) %]<option value="[% budget_loo.b_id %]">[% budget_loo.b_txt %]</option>
424
                        [% ELSE %]<option value="[% budget_loo.b_id %]" class="b_inactive">[% budget_loo.b_txt %] (inactive)</option>
425
                        [% END %]
426
                    [% END %]
421
                    [% END %]
427
                [% END %]
422
                [% END %]
423
                <select id="budget_id" onchange="fetchSortDropbox(this.form)" size="1" name="budget_id">
424
                    <option value="">Select a fund</option>
425
                    [% FOREACH budget_loo IN budget_loop %]
426
                        <option value="[% budget_loo.b_id %]"
427
                        [% IF budget_loo.b_sel %]
428
                            [% active_count = 0 #select no other fund %]
429
                            selected="selected"
430
                        [% ELSIF active_count==1 && budget_loo.b_active %]
431
                            selected="selected"
432
                        [% ELSIF !budget_loo.b_active %]
433
                            class="b_inactive"
434
                        [% END %]>[% budget_loo.b_txt %]
435
                        [% IF !budget_loo.b_active %] (inactive)[% END %]
436
                        </option>
437
                    [% END %]
428
                </select>
438
                </select>
429
                <label for="showallbudgets" style="float:none;width:auto;">&nbsp;Show all:</label>
439
                <label for="showallbudgets" style="float:none;width:auto;">&nbsp;Show all:</label>
430
                <input type="checkbox" id="showallbudgets" />
440
                <input type="checkbox" id="showallbudgets" />
431
- 

Return to bug 9088