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

(-)a/admin/columns_settings.yml (+30 lines)
Lines 1-4 Link Here
1
modules:
1
modules:
2
  acqui:
3
    lateorders:
4
      late_orders:
5
        -
6
          columnname: checkbox
7
          cannot_be_toggled: 1
8
          cannot_be_modified: 1
9
        -
10
          columnname: order_date
11
        -
12
          columnname: estimated_delivery_date
13
        -
14
          columnname: vendor
15
        -
16
          columnname: information
17
        -
18
          columnname: total_cost
19
        -
20
          columnname: basket
21
        -
22
          columnname: basket_group
23
        -
24
          columnname: library
25
        -
26
          columnname: fund
27
        -
28
          columnname: claims_count
29
        -
30
          columnname: claimed_date
31
2
  admin:
32
  admin:
3
    currency:
33
    currency:
4
      currencies-table:
34
      currencies-table:
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt (-3 / +5 lines)
Lines 1-10 Link Here
1
[% USE KohaDates %]
1
[% USE KohaDates %]
2
[% USE Branches %]
2
[% USE Branches %]
3
[% USE ColumnsSettings %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Acquisitions &rsaquo; Late orders</title>
5
<title>Koha &rsaquo; Acquisitions &rsaquo; Late orders</title>
5
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
6
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'datatables.inc' %]
8
[% INCLUDE 'datatables.inc' %]
9
[% INCLUDE 'columns_settings.inc' %]
8
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
10
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
9
[% INCLUDE 'calendar.inc' %]
11
[% INCLUDE 'calendar.inc' %]
10
<script type="text/javascript">
12
<script type="text/javascript">
Lines 23-29 function check_uncheck() { Link Here
23
25
24
$(document).ready(function() {
26
$(document).ready(function() {
25
27
26
    late_orderst = $("#late_orders").dataTable($.extend(true, {}, dataTablesDefaults, {
28
    var columns_settings = [% ColumnsSettings.GetColumns( 'acqui', 'lateorders', 'late_orders', 'json' ) %];
29
    late_orderst = KohaTable("#late_orders", {
27
        "aoColumnDefs": [
30
        "aoColumnDefs": [
28
            { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false },
31
            { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false },
29
            { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
32
            { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
Lines 37-43 $(document).ready(function() { Link Here
37
                $('input:checkbox[name=ordernumber]').bind('click', check_uncheck);
40
                $('input:checkbox[name=ordernumber]').bind('click', check_uncheck);
38
            };
41
            };
39
        }
42
        }
40
    } ) );
43
    }, columns_settings );
41
    $('input:checkbox[name=ordernumber]').bind('click', check_uncheck);
44
    $('input:checkbox[name=ordernumber]').bind('click', check_uncheck);
42
    $('#CheckAll').click(function(){ $(late_orderst.fnGetNodes()).find("td").checkCheckboxes();});
45
    $('#CheckAll').click(function(){ $(late_orderst.fnGetNodes()).find("td").checkCheckboxes();});
43
    $('#CheckNone').click(function(){ $(late_orderst.fnGetNodes()).find("td").unCheckCheckboxes();});
46
    $('#CheckNone').click(function(){ $(late_orderst.fnGetNodes()).find("td").unCheckCheckboxes();});
44
- 

Return to bug 13864