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