Bug 11832: fix JavaScript error on staff client place hold screen if record has no...
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / ordered.tt
index a0cabbc..05a3321 100644 (file)
@@ -1,9 +1,23 @@
 [% USE KohaDates %]
 [% INCLUDE 'doc-head-open.inc' %]
 <title>Koha &rsaquo; Acquisitions &rsaquo; Ordered</title>
+<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
 [% INCLUDE 'doc-head-close.inc' %]
+[% INCLUDE 'datatables.inc' %]
+<script type="text/javascript">
+//<![CDATA[
+[% IF (dateformat == 'metric') %]
+    dt_add_type_uk_date();
+[% END %]
+ $(document).ready(function() {
+    var spent = $("#spent").dataTable($.extend(true, {}, dataTablesDefaults, {
+        "sPaginationType": "four_button"
+    } ) );
+ });
+ //]]>
+</script>
 </head>
-<body>
+<body id="acq_ordered" class="acq">
 [% INCLUDE 'header.inc' %]
 [% INCLUDE 'acquisitions-search.inc' %]
 
        <th> Order </th>
        <th> Vendor </th>
        <th> Itemtype </th>
-       <th> Left on Order </th>
+    <th> Left on order </th>
        <th> Estimated cost per unit </th>
-       <th> Date Ordered </th>
+    <th> Date ordered </th>
        <th> Subtotal </th>
     </tr>
     </thead>
-
+    <tbody>
 [% FOREACH order IN ordered %]
     [% IF loop.odd %]
         <tr class="highlight">
@@ -68,7 +82,7 @@
        </td>
     </tr>
 [% END %]
-
+    </tbody>
     <tfoot>
     <tr>
         <td> Total </td>