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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt (-7 / +21 lines)
Lines 169-180 var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget") Link Here
169
                }
169
                }
170
170
171
                var nTrs = $('#budgeth tbody tr');
171
                var nTrs = $('#budgeth tbody tr');
172
                var iColspan = nTrs[0].getElementsByTagName('td').length;
172
                var iColspan = nTrs[1].getElementsByTagName('td').length;
173
                var sLastGroup = "";
173
                var sLastGroup = "";
174
                for ( var i=0 ; i<nTrs.length ; i++ )
174
                for ( var i=0 ; i<nTrs.length ; i++ )
175
                {
175
                {
176
                    var iDisplayIndex = oSettings._iDisplayStart + i;
176
                    var iDisplayIndex = oSettings._iDisplayStart + i;
177
                    var sGroup = oSettings.aoData[ oSettings.aiDisplay[iDisplayIndex] ]._aData[0];
177
                    var sGroup = oSettings.aoData[ oSettings.aiDisplay[iDisplayIndex] ]._aData[1];
178
                    if ( sGroup != sLastGroup )
178
                    if ( sGroup != sLastGroup )
179
                    {
179
                    {
180
                        var nGroup = document.createElement( 'tr' );
180
                        var nGroup = document.createElement( 'tr' );
Lines 189-198 var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget") Link Here
189
                }
189
                }
190
            },
190
            },
191
            "aoColumnDefs": [
191
            "aoColumnDefs": [
192
                { "bVisible": false, "aTargets": [ 0 ] }
192
                { "bVisible": false, "aTargets": [ 0, 1 ] }
193
            ],
193
            ],
194
            "aaSortingFixed": [[ 0, 'asc' ]],
194
            "aaSortingFixed": [[ 1, 'asc' ]],
195
            "aaSorting": [[ 1, 'asc' ]],
195
            "aaSorting": [[ 2, 'asc' ]],
196
            'bSort': false,
196
            'bSort': false,
197
            'bPaginate': false,
197
            'bPaginate': false,
198
            "bAutoWidth": false
198
            "bAutoWidth": false
Lines 211-219 var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget") Link Here
211
            $(oTable).treetable('collapseAll');
211
            $(oTable).treetable('collapseAll');
212
        });
212
        });
213
213
214
        $("#hide_inactive").click(function(e){
215
            e.preventDefault();
216
            oTable.fnFilter( 0, 0 ); // Hide active=0
217
        });
218
        $("#show_inactive").click(function(e){
219
            e.preventDefault();
220
            oTable.fnFilter( '', 0 );
221
        });
222
214
        $("#filterbutton").click(function() {
223
        $("#filterbutton").click(function() {
215
            $("#fundfilters").slideToggle(0);
224
            $("#fundfilters").slideToggle(0);
216
        });
225
        });
226
        $("#hide_inactive").click();
217
    });
227
    });
218
//]]>
228
//]]>
219
</script>
229
</script>
Lines 265-274 var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget") Link Here
265
<table id="budgeth">
275
<table id="budgeth">
266
    <caption>
276
    <caption>
267
        <span class="actions"><a href="#" id="expand_all">Expand all</a>
277
        <span class="actions"><a href="#" id="expand_all">Expand all</a>
268
        | <a href="#" id="collapse_all">Collapse all</a></span>
278
        | <a href="#" id="collapse_all">Collapse all</a>
279
        | <a href="#" id="hide_inactive">Hide inactive budgets</a>
280
        | <a href="#" id="show_inactive">Show inactive budgets</a></span>
269
    </caption>
281
    </caption>
270
    <thead>
282
    <thead>
271
        <tr>
283
        <tr>
284
            <th>Active</th>
272
            <th>Budget period description</th>
285
            <th>Budget period description</th>
273
            <th>Fund code</th>
286
            <th>Fund code</th>
274
            <th>Fund name</th>
287
            <th>Fund name</th>
Lines 283-288 var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget") Link Here
283
    <tfoot>
296
    <tfoot>
284
    <tr>
297
    <tr>
285
    <th></th>
298
    <th></th>
299
    <th></th>
286
    <th colspan="2" style="text-align: left;" nowrap="nowrap">Period allocated [% IF ( budget_period_total ) %][% budget_period_total %][% END %]  </th>
300
    <th colspan="2" style="text-align: left;" nowrap="nowrap">Period allocated [% IF ( budget_period_total ) %][% budget_period_total %][% END %]  </th>
287
    <th nowrap="nowrap" class="data"> [% period_alloc_total %]</th>
301
    <th nowrap="nowrap" class="data"> [% period_alloc_total %]</th>
288
    <th nowrap="nowrap"  class="data"> [% base_alloc_total %]</th>
302
    <th nowrap="nowrap"  class="data"> [% base_alloc_total %]</th>
Lines 296-301 var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget") Link Here
296
        [% FOREACH budget IN budgets %]
310
        [% FOREACH budget IN budgets %]
297
311
298
    <tr data-tt-id="[% budget.budget_id %]" [% IF ( budget.budget_parent_id ) %]data-tt-parent-id="[% budget.budget_parent_id %]"[% END %]>
312
    <tr data-tt-id="[% budget.budget_id %]" [% IF ( budget.budget_parent_id ) %]data-tt-parent-id="[% budget.budget_parent_id %]"[% END %]>
313
    <td>[% budget.budget_period_active %]</td>
299
    <td>Budget [% budget.budget_period_description %]</td>
314
    <td>Budget [% budget.budget_period_description %]</td>
300
    <td>[% budget.budget_code_indent %]</td>
315
    <td>[% budget.budget_code_indent %]</td>
301
    <td>[% budget.budget_name %]</td>
316
    <td>[% budget.budget_name %]</td>
302
- 

Return to bug 11578