Bug 19754: Move template JavaScript to the footer: Acquisitions, part 2
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / ordered.tt
1 [% USE KohaDates %]
2 [% USE ItemTypes %]
3 [% SET footerjs = 1 %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha &rsaquo; Acquisitions &rsaquo; Ordered</title>
6 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
7 [% INCLUDE 'doc-head-close.inc' %]
8 </head>
9
10 <body id="acq_ordered" class="acq">
11 [% INCLUDE 'header.inc' %]
12 [% INCLUDE 'acquisitions-search.inc' %]
13
14 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; Ordered - [% fund_code %]</div>
15
16 <div id="doc3" class="yui-t2">
17
18 <div id="bd">
19     <div id="yui-main">
20         <div class="yui-b">
21
22 <h1>Fund: [% fund_code %]</h1>
23 <h2>Ordered</h2>
24
25 <table id="spent">
26     <thead>
27     <tr>
28     <th class="anti-the"> Title </th>
29         <th> Order </th>
30         <th> Vendor </th>
31     <th> Item type </th>
32     <th> Left on order </th>
33         <th> Estimated cost per unit </th>
34     <th class="title-string"> Date ordered </th>
35         <th> Subtotal </th>
36     </tr>
37     </thead>
38     <tbody>
39 [% FOREACH order IN ordered %]
40     <tr>
41         <td class="cell">
42             <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber %]">
43             [% order.title %]
44             </a>
45         </td>
46         <td class="cell">
47         [% IF ( CAN_user_acquisition_order_manage ) %]
48             <a href="/cgi-bin/koha/acqui/neworderempty.pl?ordernumber=[% order.ordernumber %]&amp;booksellerid=[% order.booksellerid %]&amp;basketno=[% order.basketno %]">[% order.ordernumber %]</a>
49         [% ELSE %]
50             [% order.ordernumber %]
51         [% END %]
52         </td>
53         <td class="cell">
54             <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% order.booksellerid %]">[% order.booksellerid %]</a>
55         </td>
56         <td class="cell">
57         [% ItemTypes.GetDescription( order.itype ) %]
58         </td>
59         <td class="cell">
60             [% order.left %]
61         </td>
62     <td class="data cell">
63             [% order.ecost %]
64         </td>
65     <td class="cell">
66         <span title="[% order.entrydate %]">[% order.entrydate | $KohaDates %]</span>
67         </td>
68     <td class="data cell">
69             [% order.subtotal %]
70         </td>
71     </tr>
72 [% END %]
73     </tbody>
74     <tfoot>
75     <tr>
76         <td> Total </td>
77         <td> </td>
78         <td> </td>
79         <td> </td>
80         <td> </td>
81         <td> </td>
82         <td> </td>
83         <td class="data">
84             [% total %]
85         </td>
86     </tr>
87     </tfoot>
88
89 </table>
90
91 </div>
92 </div>
93 <div class="yui-b">
94 [% INCLUDE 'acquisitions-menu.inc' %]
95 </div>
96 </div>
97
98 [% MACRO jsinclude BLOCK %]
99     <script type="text/javascript" src="[% interface %]/[% theme %]/js/acquisitions-menu_[% KOHA_VERSION %].js"></script>
100     [% INCLUDE 'datatables.inc' %]
101     <script type="text/javascript">
102         $(document).ready(function() {
103             $("#spent").dataTable($.extend(true, {}, dataTablesDefaults, {
104                 "aoColumnDefs": [
105                     { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
106                     { "sType": "title-string", "aTargets" : [ "title-string" ] }
107                 ],
108                 "sPaginationType": "four_button"
109             }));
110         });
111     </script>
112 [% END %]
113
114 [% INCLUDE 'intranet-bottom.inc' %]