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