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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt (-15 / +3 lines)
Lines 79-98 Link Here
79
79
80
    <div id="BudgetsAndFunds">
80
    <div id="BudgetsAndFunds">
81
    <table id="accounts">
81
    <table id="accounts">
82
        <caption>
83
          <span class="actions"><a href="#" id="expand_all">Expand all</a>
84
          | <a href="#" id="collapse_all">Collapse all</a>
85
          | <a href="#" id="hide_inactive">Hide inactive budgets</a>
86
          | <a href="#" id="show_inactive">Show inactive budgets</a>
87
          | <select id="library-filter">
88
              <option value="">Filter by library</option>
89
              [% FOREACH b IN Branches.all %]
90
                <option value="[% b.branchname | html %]">[% b.branchname | html %]</option>
91
              [% END %]
92
            </select>
93
        </span>
94
95
        </caption>
96
82
97
        <thead>
83
        <thead>
98
        <tr>
84
        <tr>
Lines 241-248 Link Here
241
                'bSort': true,
227
                'bSort': true,
242
                'aaSortingFixed': [[ 1, 'asc' ]],
228
                'aaSortingFixed': [[ 1, 'asc' ]],
243
                'bPaginate': false,
229
                'bPaginate': false,
244
                "bAutoWidth": false
230
                "bAutoWidth": false,
231
                "dom": 'ifB<"budget_toolbar">'
245
            });
232
            });
233
            $(".budget_toolbar").html('<div class="toolbar"><span class="actions"><a href="#" id="expand_all">Expand all</a> | <a href="#" id="collapse_all">Collapse all</a> | <a href="#" id="hide_inactive">Hide inactive budgets</a> | <a href="#" id="show_inactive">Show inactive budgets</a> | <select id="library-filter"><option value="">Filter by library</option>[% FOREACH b IN Branches.all %]<option value="[% b.branchname | html %]">[% b.branchname | html %]</option>[% END %]</select></span></div>');
246
234
247
            $(oTable).treetable({
235
            $(oTable).treetable({
248
                expandable: true
236
                expandable: true
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt (-10 / +5 lines)
Lines 52-65 Link Here
52
[% IF budgets %]
52
[% IF budgets %]
53
53
54
<table id="budgeth" class="group">
54
<table id="budgeth" class="group">
55
    [% UNLESS budget_period_id %]
56
      <caption>
57
        <span class="actions"><a href="#" id="expand_all">Expand all</a>
58
        | <a href="#" id="collapse_all">Collapse all</a>
59
        | <a href="#" id="hide_inactive">Hide inactive budgets</a>
60
        | <a href="#" id="show_inactive">Show inactive budgets</a></span>
61
      </caption>
62
    [% END %]
63
    <thead>
55
    <thead>
64
        <tr>
56
        <tr>
65
            <th>Active</th>
57
            <th>Active</th>
Lines 653-660 Link Here
653
                        'bSort': true,
645
                        'bSort': true,
654
                        'aaSortingFixed': [[ 1, 'asc' ]],
646
                        'aaSortingFixed': [[ 1, 'asc' ]],
655
                        'bPaginate': false,
647
                        'bPaginate': false,
656
                        "bAutoWidth": false
648
                        "bAutoWidth": false,
649
                        "dom": 'ifB<"budget_toolbar">'
657
                    });
650
                    });
651
                    [% UNLESS budget_period_id %]
652
                        $(".budget_toolbar").html('<br clear="all"/><div class="toolbar"><span class="actions"><a href="#" id="expand_all">Expand all</a> | <a href="#" id="collapse_all">Collapse all</a> | <a href="#" id="hide_inactive">Hide inactive budgets</a> | <a href="#" id="show_inactive">Show inactive budgets</a></span></div>');
653
                    [% END %]
658
654
659
                    $(oTable).treetable({
655
                    $(oTable).treetable({
660
                        expandable: true
656
                        expandable: true
661
- 

Return to bug 27653