Bug 33908: Improve translation of title tags: Acquisitions
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / ordered.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE KohaDates %]
4 [% USE ItemTypes %]
5 [% USE Price %]
6 [% PROCESS 'i18n.inc' %]
7 [% SET footerjs = 1 %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>[% FILTER collapse %]
10     [% t("Ordered") | html %] &rsaquo;
11     [% t("Acquisitions") | html %] &rsaquo;
12     [% t("Koha") | html %]
13 [% END %]</title>
14 [% INCLUDE 'doc-head-close.inc' %]
15 </head>
16
17 <body id="acq_ordered" class="acq">
18 [% WRAPPER 'header.inc' %]
19     [% INCLUDE 'acquisitions-search.inc' %]
20 [% END %]
21
22 [% WRAPPER 'sub-header.inc' %]
23     [% WRAPPER breadcrumbs %]
24         [% WRAPPER breadcrumb_item %]
25             <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
26         [% END %]
27         [% WRAPPER breadcrumb_item bc_active= 1 %]
28             <span>Ordered - [% fund_code | html %]</span>
29         [% END %]
30     [% END #/ WRAPPER breadcrumbs %]
31 [% END #/ WRAPPER sub-header.inc %]
32
33 <div class="main container-fluid">
34     <div class="row">
35         <div class="col-sm-10 col-sm-push-2">
36             <main>
37
38 <h1>Ordered - Fund: [% fund_code | html %]</h1>
39
40                 <div class="page-section">
41                     <table id="spent">
42                         <thead>
43                         <tr>
44                         <th class="anti-the"> Title </th>
45                         <th> [% tp('noun', 'Order') | html %] </th>
46                         <th> Vendor </th>
47                         <th> Item types </th>
48                         <th> Left on order </th>
49                         <th> Estimated cost per unit </th>
50                         <th> Date ordered </th>
51                         <th> Subtotal </th>
52                         </tr>
53                         </thead>
54                         <tbody>
55                     [% FOREACH order IN ordered %]
56                         <tr>
57                         <td class="cell">
58                                 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber | uri %]">
59                             [% order.title | html %]
60                                 </a>
61                         </td>
62                         <td class="cell">
63                             [% IF ( CAN_user_acquisition_order_manage ) %]
64                                 <a href="/cgi-bin/koha/acqui/neworderempty.pl?ordernumber=[% order.ordernumber | uri %]&amp;booksellerid=[% order.booksellerid | uri %]&amp;basketno=[% order.basketno | uri %]">[% order.ordernumber | html %]</a>
65                             [% ELSE %]
66                                 [% order.ordernumber | html %]
67                             [% END %]
68                         </td>
69                         <td class="cell">
70                             <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% order.booksellerid | uri %]">[% order.vendorname | html %]</a>
71                         </td>
72                         <td class="cell">
73                             [% FOREACH itemtype IN order.itemtypes %]
74                                 [% ItemTypes.GetDescription( itemtype ) | html %]
75                                 [% IF !loop.last() %] | [% END %]
76                             [% END %]
77                         </td>
78                         <td class="cell">
79                             [% order.left | html %]
80                         </td>
81                         <td class="data cell">
82                             [% order.ecost_tax_included | $Price %]
83                         </td>
84                         <td class="cell" data-order="[% order.entrydate | html %]">
85                             [% order.entrydate | $KohaDates %]
86                         </td>
87                         <td class="data cell">
88                             [% order.subtotal | $Price %]
89                         </td>
90                         </tr>
91                     [% END %]
92                         </tbody>
93                         <tfoot>
94                         [% IF ( adjustments && adjustments.count > 0 ) %]
95                                 [% FOREACH adjustment IN adjustments %]
96                                     <tr>
97                                         <td></td>
98                                         <td colspan="6">Adjustment cost for invoice
99                                             <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% adjustment.invoiceid | uri %]">
100                                                 [% adjustment.invoice.invoicenumber | html %]
101                                             </a>
102                                         </td>
103                                         <td class="data total">[% adjustment.adjustment | $Price %]</td>
104                                     </tr>
105                                 [% END %]
106
107                         [% END %]
108                         <tr>
109                             <td> Total </td>
110                             <td> </td>
111                             <td> </td>
112                             <td> </td>
113                             <td> </td>
114                             <td> </td>
115                             <td> </td>
116                             <td class="data">
117                                 [% total | $Price %]
118                             </td>
119                         </tr>
120                         </tfoot>
121
122                     </table>
123                 </div> <!-- /.page-section -->
124
125 </main>
126 </div> <!-- /.col-sm-10.col-sm-push-2 -->
127
128 <div class="col-sm-2 col-sm-pull-10">
129     <aside>
130         [% INCLUDE 'acquisitions-menu.inc' %]
131     </aside>
132 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
133 </div> <!-- /.row -->
134
135 [% MACRO jsinclude BLOCK %]
136     [% Asset.js("js/acquisitions-menu.js") | $raw %]
137     [% INCLUDE 'datatables.inc' %]
138     <script>
139         $(document).ready(function() {
140             $("#spent").dataTable($.extend(true, {}, dataTablesDefaults, {
141                 "aoColumnDefs": [
142                     { "sType": "anti-the", "aTargets" : [ "anti-the" ] }
143                 ],
144                 "sPaginationType": "full"
145             }));
146         });
147     </script>
148 [% END %]
149
150 [% INCLUDE 'intranet-bottom.inc' %]